迁移一个老项目(SpringMVC)代码到SpringBoot的过程中遇到一个问题:需要将配置文件(application)中的属性读出来赋到一个静态变量上,故使用上图方式
springboot配置文件中的属性读出来需要用静态变量接住
最新推荐文章于 2022-06-29 20:00:19 发布
迁移一个老项目(SpringMVC)代码到SpringBoot的过程中遇到一个问题:需要将配置文件(application)中的属性读出来赋到一个静态变量上,故使用上图方式