目的:

获取application.properties配置文件的属性值

 

代码

@Value("${server.port}")
private String port;

 

相关文章: