现有区域配置文件 加入

This commit is contained in:
wangliwen 2022-06-21 10:05:18 +08:00
parent ae66fffc8d
commit b4af15eab1
6 changed files with 34 additions and 1 deletions

View File

@ -12,7 +12,7 @@ import org.springframework.stereotype.Component;
*/ */
@Data @Data
@Component @Component
@PropertySource("classpath:baotou.properties") @PropertySource("classpath:/domain/baotou.properties")
@ConfigurationProperties(prefix = "baotou") @ConfigurationProperties(prefix = "baotou")
public class BaoTouProperties { public class BaoTouProperties {
private String hlsurl; private String hlsurl;

View File

@ -0,0 +1,18 @@
package io.renren.common.domain;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;
/**
* 青岛市区
*/
@Data
@Component
@PropertySource("classpath:/domain/tsingtao.properties")
@ConfigurationProperties(prefix = "tsingtao")
public class TsingtaoProperties {
}

View File

@ -0,0 +1,15 @@
package io.renren.common.domain;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;
@Data
@Component
@PropertySource("classpath:/domain/tsingtao_xha.properties")
@ConfigurationProperties(prefix = "tsingtao")
public class Tsingtao_xhaProperties {
}