英文:
nested exception is java.lang.NoClassDefFoundError: org.springframework.boot.env.PropertySourcesLoader
问题
我正在将我的应用程序从Spring Boot 1.5x版本迁移到2.1.6.RELEASE版本,并尝试在WAS9中部署我的应用程序。在启动应用程序时出现以下异常:
嵌套异常是java.lang.NoClassDefFoundError:org.springframework.boot.env.PropertySourcesLoader
了解到在Spring Boot 2.0中不存在org.springframework.boot.env.PropertySourcesLoader。
如果在Spring Boot 2.x中停用了上述类,有人可以帮我找到替代方案吗?
英文:
I am migrating my application from spring boot version 1.5x to 2.1.6.RELEASE and trying to deploy my app in WAS9. Getting below exception while starting the app :
nested exception is java.lang.NoClassDefFoundError: org.springframework.boot.env.PropertySourcesLoader
Got to know that org.springframework.boot.env.PropertySourcesLoader doesnot exists in spring boot 2.0.
Can anyone please help me with the alternative to use if the above Class is decommisioned in Spring Boot 2.x.
专注分享java语言的经验与见解,让所有开发者获益!
评论