put config file to config path
This commit is contained in:
1
config/application.properties
Normal file
1
config/application.properties
Normal file
@@ -0,0 +1 @@
|
||||
server.port=8085
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user