报错 The import javax.annotation.Resource cannot be resolved 的解决办法

在JavaEE实训的时候使用@Resource注解报了这么一个错: 以下是解决办法: 1、右键项目–》properties–》Add Library –》Server Runtime –》选择自己使用的Tomcat版本 –》apply and close 完美解决! 记录一下,留给有需要的人!
相关文章
相关标签/搜索