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
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