添加配置文件默认值
parent
04e5403878
commit
d26b58fd10
|
@ -11,9 +11,9 @@ import org.springframework.stereotype.Component;
|
|||
@Component
|
||||
public class QxUtils {
|
||||
private final Logger logger = LoggerFactory.getLogger(this.getClass());
|
||||
@Value("${qx.queryAppUrl}")
|
||||
@Value("${qx.queryAppUrl:http://117.47.88.120:8081/authority/api/v1/apps}")
|
||||
private String queryAppUrl;
|
||||
@Value("${qx.queryAppModulesUrl}")
|
||||
@Value("${qx.queryAppModulesUrl:http://117.47.88.120:8081/authority/api/v1/appModules}")
|
||||
private String queryAppModulesUrl;
|
||||
|
||||
public String queryApp(String userToken, String userId){
|
||||
|
|
|
@ -13,13 +13,13 @@ import org.springframework.stereotype.Component;
|
|||
public class YkUtils {
|
||||
private final Logger logger = LoggerFactory.getLogger(this.getClass());
|
||||
//参考application.yml配置文件
|
||||
@Value("${yk.url}")
|
||||
@Value("${yk.url:http://36.111.150.83:9527/}")
|
||||
private String url;
|
||||
|
||||
@Value("${yk.reqUserId}")
|
||||
@Value("${yk.reqUserId:1}")
|
||||
private String reqUserId;
|
||||
|
||||
@Value("${yk.systemId}")
|
||||
@Value("${yk.systemId:1}")
|
||||
private String systemId;
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue