Springboot项目打包成war包部署到tomcat上启动,使用外部自定义的配置文件

思路:

         通过实现 EnvironmentPostProcessor 在程序启动加载程序环境的时候加载自定义的属性文件
 

参考地址:

           https://blog.csdn.net/yangyun901222/article/details/82287383

猜你喜欢

转载自blog.csdn.net/lihongtai/article/details/89632991