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
|
@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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user