在进行软件工程第二个实验环境配置时遇到了一些问题,主要集中在MySQL安装配置上面,文章最后一个部分将具体描述遇到的问题以及解决的方法。
在eclipse中配置struts2
- 从http://struts.apache.org/download.cgi下载struts2的核心支持库(.jar文件)[struts 2.3.30亲测可用]
- 将以上.jar文件直接复制粘贴到新建工程的WEB-INF目录下的lib目录。
配置好工程的web.xml和struts.xml文件:
web.xml
<?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID" version="3.0"> <filter> <filter-name>struts2</filter-name> <filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class> </filter> <filter-mapping> <filter-name>struts2</filter-name> <