在yml,配置完,调用时 报错了
Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled.
Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled.
2017-11-05
.yml
server:
port: 80
content: "cupSize:${cupSize},age:${age}"
.java
@RestController
public class HelloController {
// @Value("${cupSize}")
// private String cupSize;
// @Value("${age}")
// private Integer age;
@Value("${content}")
private String content;
@RequestMapping(value = "/hello")
public String say(){
return content;
}
}
举报