本文章接上一篇文章:https://www.cnblogs.com/ysq0908/p/11140931.html

1.使用注解@Value获取配置文件的值

springboot中配置文件使用2

 

springboot中配置文件使用2

 注意:上述中的复杂数据封装指:有map等数据,@Value不支持。

springboot中配置文件使用2

 

 springboot中配置文件使用2

 

 springboot中配置文件使用2

 

相关文章: