put config file to config path
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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
|
||||
@@ -1,2 +0,0 @@
|
||||
hms.appSecret=a4e5e6a0c8a5d8424aba5a8f0aae3d0c
|
||||
hms.appId=100221325
|
||||
@@ -1,2 +0,0 @@
|
||||
meizu.appSecret=098f6939499a44328fe201eb82d01fb2
|
||||
meizu.appId=113616
|
||||
@@ -1 +0,0 @@
|
||||
xiaomi.appSecret=66nAHUMwmGz042clVI5bVg==
|
||||
Reference in New Issue
Block a user