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 @Configuration
@ConfigurationProperties(prefix="hms") @ConfigurationProperties(prefix="hms")
@PropertySource(value = "classpath:hms.properties") @PropertySource(value = "file:config/hms.properties")
public class HMSConfig { public class HMSConfig {
private String appSecret; private String appSecret;
private String appId; private String appId;

View File

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

View File

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

View File

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