@Resource爆红 原因: jdk11及之后的版本不支持@Resource了 解决方法: 更换项目所用jdk为jdk1.8: File——Project Structure— Project-------Project SDK