将Spring Boot从1.5.x升级到2.0.x并获取@Component和@Scope批注的错误

时间:2019-10-24 22:21:59

标签: java spring spring-boot

在将Spring Boot版本从1.5.x升级到2.0.x之后,我开始收到关于@Component@Scope注释的错误。我进行了很多搜索,但找不到有关这些内容的其他信息,这些信息已转移到其他软件包中。有人可以帮忙吗? 具体错误信息如下:

package org.springframework.stereotype does not exist
package org.springframework.context.annotation does not exist

0 个答案:

没有答案