配置步骤: 1. 在WEB-INF下新建lib目录并加入自己的包;
file:///C:\Users\PC\AppData\Local\Temp\ksohtml\wpsE8A.tmp.jpg 2. 右键项目 -> Build Path -> Configure Build Paht...
file:///C:\Users\PC\AppData\Local\Temp\ksohtml\wpsE8B.tmp.jpg 3. 选择新加入的包
file:///C:\Users\PC\AppData\Local\Temp\ksohtml\wpsE8C.tmp.jpg 4. 配置pom.xml文件 <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.6</source> <target>1.6</target> <encoding>UTF-8</encoding> <compilerArguments> <extdirs>src\main\webapp\WEB-INF\lib</extdirs> </compilerArguments> </configuration> </plugin> 无关配置省略... </plugins> </build> 5. 6. 右键运行你的项目即可 如过此内容对您有帮助,欢迎以点击广告的形式来支持我们,但请每天不要多于一次,否则可能被识别恶意点击,导致封号。 配置步骤: 1. 在WEB-INF下新建lib目录并加入自己的包;
file:///C:\Users\PC\AppData\Local\Temp\ksohtml\wpsE9C.tmp.jpg 2. 右键项目 -> Build Path -> Configure Build Paht...
file:///C:\Users\PC\AppData\Local\Temp\ksohtml\wpsE9D.tmp.jpg 3. 选择新加入的包
file:///C:\Users\PC\AppData\Local\Temp\ksohtml\wpsE9E.tmp.jpg 4. 配置pom.xml文件 <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.6</source> <target>1.6</target> <encoding>UTF-8</encoding> <compilerArguments> <extdirs>src\main\webapp\WEB-INF\lib</extdirs> </compilerArguments> </configuration> </plugin> 无关配置省略... </plugins> </build> 5. 6. 右键运行你的项目即可
|