sis框架整合
<url-pattern>*.do</url-pattern>
</servlet-mapping>
5. web.xml自动添加的*.jsp文件起始路径(注意:jsp文件的访问路径)
<welcome-file-list>
<welcome-file>/WEB-INF/jsp/emp.jsp</welcome-file>
</welcome-file-list>
二、对Spring配置文件applicationContext.xml文件的修改
1. 配置JDBC数据源驱动文件 jdbc.properties(服务器、端口、账户、密码因具体情况而定)
MySql:
jdbc.driver=com.mysql.jdbc.Driver
jdbc.url=jdbc:mysql://localhost:3306/test
jdbc.username=root
jdbc.password=admin
Oracle:
jdbc.driver=oracle.jdbc.driver.OracleDriver
jdbc.url=jdbc:oracle:thin:@127.0.0.1:1521:orcl
jdbc.username=scott
jdbc.password=tiger
MS Sql Server:
jdbc.driver= com.microsoft.jdbc.sqlserver.SQLServerDriver
jdbc.url= jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=mssql
jdbc.username=sa
jdbc.password=sa
2. 将JDBC驱动源文件部署到ApplicationContext.xml配置文件中
<bean id="propertyConfigurer"
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> <property name="locations"> <list> <value>/WEB-INF/conf/jdbc.properties</value> </list> </property>
</bean>
3. 将Data Source配置到ApplicationContext文件中
<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource"
destroy-method="close">
<property name="driverClassName"> <value>${jdbc.driver}</value> </property> <property name="url"> <value>${jdbc.url}</value> </property> <property name="username">
Struts+Spring+Ibatis整合框架搭建配置文档_IT/计算机_专业资料 暂无评价0人阅读0次下载举报文档 Struts+Spring+Ibatis整合框架搭建配置文档_IT/计算机_专业资料。...
Struts+Spring+Ibatis整合框架搭建配置文档_IT/计算机_专业资料。Struts + Spring +ibatis 整合开发步骤Struts + Spring +ibatis 整合开发步骤: 整合开发步骤: 一....
Struts+Spring+Ibatis整合框架搭建配置文档_计算机软件及应用_IT/计算机_专业资料。Struts+Spring+Ibatis整合框架搭建配置文档Struts + Spring +ibatis 整合开发步骤: St...
Struts+Spring+Ibatis整合框架搭建配置文档_计算机软件及应用_IT/计算机_专业资料。Struts+Spring+Ibatis整合框架搭建配置文档Struts + Spring +ibatis 整合开发步骤:一...
Spring2.5、 Struts2、 Ibatis 开发框架搭建 (一) 一、框架下载 1.1 Struts2 框架 Struts2 框架发展于 WebWork,现在捐献给了 Apache 开源组织,最新版本的 ...
SSI整合--搭建Struts2+Spring+Ibatis框架_IT/计算机_专业资料。搭建Struts2+Spring+Ibatis框架,各个配置文件详解,本人受益匪浅!-SSI 整合---搭建 Struts2+Spring+...
struts2+spring+ibatis框架整合_计算机软件及应用_IT/计算机_专业资料。struts2+spring+ibatis框架整合的小实例。开发工具 Eclipse 3.3 Tomcat 6.0 运行坏境 Window...
二、创建一个数据库,建一个简单的表,表结构可以参考: 搭建项目整合 Spring、Struts、Ibatis 主要是配置 4 个文件分别是 ApplicationContext.xml 此为 Spring 的...
Struts2+Ibatis+spring整合解析_IT/计算机_专业资料。Struts2+Ibatis+spring整合解析SSI 框架整合开发工具: MyEclipse8.5 框架版本: struts2、spring2.5、ibatis 打...
暂无评价0人阅读0次下载举报文档 struts1.3+spring2.5+ibatis2.3.4整合_计算机软件及应用_IT/计算机_专业资料。三大框架整合1...
password=liusheng 4 Velocity+Spring+Ibatis 框架集成说明文档 四.配置 web.xml...struts+spring+ibatis框... 10页 免费 ibatis框架搭建顺序及个... 7页 免费...
struts+spring+iBatis整合struts+spring+iBatis整合隐藏>> struts+spring+iBatis 整合将 Struts、Spring 和 ibatis 的组合在一起 Struts 仍然是只负责 MVC 这部分。...
热门文档