版本——springBoot 1.5.10.RELEASE
@PropertySource("classpath:xx.properties")
@Value("${username}")
private String username;
默认加载计算机主机名 而不是配置文件xx.properties中的 username
拓展
springMvc code字段向前端映射传值失败 因为code是关键字
版本——springBoot 1.5.10.RELEASE
@PropertySource("classpath:xx.properties")
@Value("${username}")
private String username;
默认加载计算机主机名 而不是配置文件xx.properties中的 username
拓展
springMvc code字段向前端映射传值失败 因为code是关键字