@Value("${log.regId}")
private String regId = "123123";
String regId = env.getProperty("log.regId","123123");
@Value("${log.regId}")
private String regId = "123123";
String regId = env.getProperty("log.regId","123123");
转载于:https://www.cnblogs.com/matd/p/11050271.html