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

@@ -0,0 +1 @@
server.port=8085

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;