Solution of @ resource annotation in jdk9 not working properly

Time:2021-7-30

Solution of @ resource annotation in jdk9 not working properly
1. Use jdk8
2 manually import the jar package of javax.annotation

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