import javax.annotation.* cannot be resolved in Eclipse's Java 10 Compiler

后端 未结 3 1979
名媛妹妹
名媛妹妹 2021-01-11 14:15

In my machine (Windows 10), there are two versions of Java, Java 1.8 (JRE and JDK) and Java 10 (JRE and JDK).

Previously IF I set my Eclipse

3条回答
  •  逝去的感伤
    2021-01-11 15:08

    Well This happens Because @PostConstruct and @preDestroy are deprecated in java 9 onwards so better not to use them instead use interface to resolve this

提交回复
热议问题