PostConstruct不再可用

问题描述 投票:1回答:1

我使用Eclipse和Java的最新版本。我尝试移动从Java 8我的RCP应用程序到Java 11.我的应用程序运行,但现在我有功能性问题,因为我已经从我的代码中删除注释@PostConstruct。

存在此注射注释任何其他选择吗?

java rcp e4 java-11
1个回答
2
投票

对于Eclipse E4的PostConstruct注释是在javax.annotation插件。补充一点,作为一个依赖于你的插件和继续使用PostConstruct。

© www.soinside.com 2019 - 2024. All rights reserved.