您好,登录后才能下订单哦!
spring-framework-3.2.4.RELEASE jar 包:
spring-aop-3.2.4.RELEASE.jar
spring-aspects-3.2.4.RELEASE.jar
spring-beans-3.2.4.RELEASE.jar
spring-context-3.2.4.RELEASE.jar
spring-core-3.2.4.RELEASE.jar
spring-expression-3.2.4.RELEASE.jar
spring-jdbc-3.2.4.RELEASE.jar
spring-orm-3.2.4.RELEASE.jar
spring-tx-3.2.4.RELEASE.jar
spring-web-3.2.4.RELEASE.jar
spring-context-support-3.2.4.RELEASE.jar
下载地址:https://repo.spring.io/webapp/#/artifacts/browse/tree/search/
quick/eyJzZWFyY2giOiJxdWljayIsInF1ZXJ5Ijoic3ByaW5nLWZyYW1ld29yayJ9
struts-2.3.24.1 jar 包:
commons-fileupload-1.3.1.jar
commons-io-2.2.jar
commons-lang3-3.2.jar
commons-logging.jar
commons-logging-1.1.3.jar
freemarker-2.3.22.jar
javassist-3.11.0.GA.jar
ognl-3.0.6.jar
struts2-core-2.3.24.1.jar
struts2-spring-plugin-2.3.4.1.jar
aopalliance-1.0.jar
xwork-core-2.3.24.1.jar
下载地址:http://archive.apache.org/dist/struts/2.3.24/
mybatis-3.3.0 jar包:
log4j-1.2.17.jar
mybatis-3.3.0.jar
下载地址:https://github.com/mybatis/mybatis-3/releases
其它jar包:
ojdbc14.jar
mybatis-spring-1.2.1.jar
servlet-api-2.5-6.1.9.jar
aspectjweaver.jar
wsdl4j.jar
-----------------------------------------------------------默默无闻的分割线-----------------------------------------------------------
web.xml (从Struts2文件夹拷贝)
位置:/WEB-INF/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/j2ee"
xmlns:javaee="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" id="starter" version="2.4">
<javaee:display-name>student management</javaee:display-name>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:applicationContext.xml</param-value>
</context-param>
<listener>
<listener-class>org.springframework.web.util.Log4jConfigListener</listener-class>
</listener>
<context-param>
<param-name>log4jConfigLocation</param-name>
<param-value>classpath:log4j.properties</param-value>
</context-param>
<listener>
<listener-class>
org.springframework.web.context.ContextLoaderListener
</listener-class>
</listener>
<filter>
<filter-name>characterEncoding</filter-name>
<filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
<init-param>
<param-name>encoding</param-name>
<param-value>UTF-8</param-value>
</init-param>
<init-param>
<param-name>forceEncoding</param-name>
<param-value>true</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>characterEncoding</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<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>
<url-pattern>/*</url-pattern>
</filter-mapping>
<session-config>
<session-timeout>5</session-timeout>
</session-config>
<welcome-file-list>
<welcome-file>/index.jsp</welcome-file>
</welcome-file-list>
</web-app>
-----------------------------------------------------------默默无闻的分割线-----------------------------------------------------------
applicationContext.xml
位置:src/applicationContext.xml
内容:
-----------------------------------------------------------默默无闻的分割线-----------------------------------------------------------
jdbc.properties文件
位置:/src/jdbc.properties
内容:
jdbc.driver = oracle.jdbc.driver.OracleDriver
jdbc.url = jdbc:oracle:thin:@127.0.0.1:1521:orcl
jdbc.user =
jdbc.pwd = 123456
-----------------------------------------------------------默默无闻的分割线-----------------------------------------------------------
log4j.properties文件
位置:/src/log4j.properties
内容:
log4j.properties文件
位置:/src/log4j.properties
内容:
-----------------------------------------------------------默默无闻的分割线-----------------------------------------------------------
mybatis_config.xml文件
位置:/src/mybatis_config.xml
内容:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN" "http://mybatis.org/dtd/mybatis-3-config.dtd">
<configuration>
<typeAliases>
<typeAlias alias="student" type="com.shenzhen.management.pojo.Student"/>
</typeAliases>
<mappers>
<mapper resource="/studentMapper.xml"/>
</mappers>
</configuration>
-----------------------------------------------------------默默无闻的分割线-----------------------------------------------------------
文件位置:/src/struts.xml
文件内容:
-----------------------------------------------------------默默无闻的分割线-----------------------------------------------------------
studentMapper.xml
文件位置:/src/studentMapper.xml
文件内容:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.shenzhen.management">
<resultMap type="student" id="studentMap">
<result property="stuNo" column="STUNO"/>
<result property="name" column="NAME"/>
</resultMap>
<select id="getStudents" parameterType="String" resultMap="studentMap">
select * from student
</select>
<insert id="addStudent" parameterType="student">
insert into student(STUNO,NAME) values( #{stuNo},#{name})
</insert>
</mapper>
-----------------------------------------------------------默默无闻的分割线-----------------------------------------------------------
/WebContent/index.jsp
文件位置:/WebContent/index.jsp,其它文件位置:/WebContent/WEB-INF/page/
文件内容:
-----------------------------------------------------------默默无闻的分割线-----------------------------------------------------------
文件:HelloWorldAction.java
位置:src/com/shenzhen/management/action/HelloWorldAction.java
内容:
}
-----------------------------------------------------------默默无闻的分割线-----------------------------------------------------------
文件:StudentDaoImpl.java
位置:/src/com/shenzhen/management/dao/impl/StudentDaoImpl.java
内容:
-----------------------------------------------------------默默无闻的分割线-----------------------------------------------------------
JDK:http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
tomcat: http://tomcat.apache.org/download-70.cgi#7.0.69
eclipse: http://eclipse.bluemix.net/packages/mars.2/
FileZilla
PuTTY
notepad++
SOAPUI
jd-gui.exe
亿速云「云服务器」,即开即用、新一代英特尔至强铂金CPU、三副本存储NVMe SSD云盘,价格低至29元/月。点击查看>>
开发者交流群:
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。