高版本JDK无法使用 @Resource 注解解决方案
1. 普通项目
下载 javax.annotation-api-1.3.2.jar,并在 lib 目录中引入即可
2. Maven 项目
Maven项目:在 pom.xml 中进行配置
<dependency>
<groupId>javax.annotation</groupId>
<artifactId>jsr250-api</artifactId>
<version>1.0</version>
</dependency>
- 解决方案 方案 ANNOTATION RESOURCE JAVAX解决方案 方案annotation resource resource解决方案 文件 目录 javax servlet办法javax class jaxbexception context javax servlet javax nosuchmethodexception httpservletresponse servelet jakarta tomcat javax classnotfoundexception httpservlet servlet javax datasource 20230629 javax sql constraints validation参数javax