【发布时间】:2019-11-25 12:55:47
【问题描述】:
我正在尝试运行具有依赖关系的应用程序(spring boot v1.5.9.0):
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-properties-migrator</artifactId>
<scope>runtime</scope>
</dependency>
并收到此错误:
org.springframework.boot.SpringApplication - Application startup failed
java.lang.NoClassDefFoundError: org/springframework/boot/context/properties/source/ConfigurationPropertySources
这个错误显然以前没有发生过。如何使迁移器工作?
在运行迁移器之前,我是否必须将 spring-boot 版本更改为 2x? 如果是这样,我并没有真正了解迁移器的使用情况。 因为它的范围是运行时——我必须让应用程序在包含它之前运行——这意味着我必须在没有迁移者建议的情况下解决所有错误?以后我用它做什么?
【问题讨论】:
标签: java spring spring-boot