private static String driverUrl;
public static String password;
@Value("${config.driverUrl}")
public void setDriverUrl(String driverUrl) {
Utils.driverUrl = driverUrl;
}
@Value("${config.password}")
public void setPassword(String password) {
Utils.password = password;
}
application.yml配置文件中的值
网友评论