nested exception is java.lang.NoClassDefFoundError: org.springframework.boot.env.PropertySourcesLoader

huangapple 未分类评论43阅读模式
英文:

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.

huangapple
  • 本文由 发表于 2020年5月4日 23:33:43
  • 转载请务必保留本文链接:https://java.coder-hub.com/61595937.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定