put config file to config path

This commit is contained in:
heavyrain.lee
2019-01-23 20:31:48 +08:00
parent b970957661
commit 7d26712d29
9 changed files with 5 additions and 4 deletions

View File

@@ -6,7 +6,7 @@ import org.springframework.context.annotation.PropertySource;
@Configuration
@ConfigurationProperties(prefix="hms")
@PropertySource(value = "classpath:hms.properties")
@PropertySource(value = "file:config/hms.properties")
public class HMSConfig {
private String appSecret;
private String appId;

View File

@@ -6,7 +6,7 @@ import org.springframework.context.annotation.PropertySource;
@Configuration
@ConfigurationProperties(prefix="meizu")
@PropertySource(value = "classpath:meizu.properties")
@PropertySource(value = "file:config/meizu.properties")
public class MeiZuConfig {
private String appSecret;
private long appId;

View File

@@ -6,7 +6,7 @@ import org.springframework.context.annotation.PropertySource;
@Configuration
@ConfigurationProperties(prefix="xiaomi")
@PropertySource(value = "classpath:xiaomi.properties")
@PropertySource(value = "file:config/xiaomi.properties")
public class XiaomiConfig {
private String appSecret;

View File

@@ -6,7 +6,7 @@ import org.springframework.context.annotation.PropertySource;
@Configuration
@ConfigurationProperties(prefix="apns")
@PropertySource(value = "classpath:apns.properties")
@PropertySource(value = "file:config/apns.properties")
public class ApnsConfig {
String productCerPath;
String productCerPwd;

View File

@@ -1,9 +0,0 @@
apns.product_cer_path=apns/wildfirechat_pro_push.p12
apns.product_cer_pwd=123456
apns.develop_cer_path=apns/wildfirechat_dev_push.p12
apns.develop_cer_pwd=123456
apns.voip_cer_path=apns/wildfirechat_voip_push.p12
apns.voip_cer_pwd=123456
apns.alert=default
apns.voip_alert=ring.caf

View File

@@ -1,2 +0,0 @@
hms.appSecret=a4e5e6a0c8a5d8424aba5a8f0aae3d0c
hms.appId=100221325

View File

@@ -1,2 +0,0 @@
meizu.appSecret=098f6939499a44328fe201eb82d01fb2
meizu.appId=113616

View File

@@ -1 +0,0 @@
xiaomi.appSecret=66nAHUMwmGz042clVI5bVg==