且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

导入javax.annotation。*无法在Eclipse的Java 10编译器中解析

更新时间:2023-12-04 15:38:25

您可以尝试向pom.xml添加注释依赖项,以便它们可用于Spring:

You can try to add annotation dependencies to pom.xml, so that they would be available for Spring:

<dependency>
  <groupId>javax.annotation</groupId>
  <artifactId>javax.annotation-api</artifactId>
  <version>1.3.2</version>
</dependency>