【发布时间】:2021-11-25 02:04:48
【问题描述】:
从 java 8 升级到 java 11 并收到以下注释警告。请建议如何解决。
[WARNING] No processor claimed any of these annotations:
/org.springframework.context.annotation.Primary,
/org.springframework.data.annotation.Id,
/org.springframework.context.annotation.ComponentScan,
/org.springframework.boot.autoconfigure.SpringBootApplication,
/org.springframework.boot.context.properties.ConfigurationProperties,
/org.springframework.data.mongodb.repository.Query,
/com.fasterxml.jackson.annotation.JsonInclude,
/javax.validation.constraints.NotNull,
/org.springframework.context.annotation.ImportResource,
/org.springframework.web.bind.annotation.DeleteMapping,
/org.springframework.web.bind.annotation.PostMapping
【问题讨论】:
-
你在运行 java 11 之前尝试过编译吗?
-
是的,这是在编译中显示的。
-
将 springboot 添加到您的类路径或使用 maven 构建项目。确保您有互联网连接,允许下载 springboot 库。
-
这看起来不像是一个真正的问题。请参阅此处提到的解释和详细信息:github.com/spring-projects/spring-boot/issues/6421