文档下载 文档下载导航
设为首页 | 加入收藏
搜索 请输入内容:  
 导航当前位置: 文档下载 > 所有分类 > IT/计算机 > 计算机软件及应用 > Struts+Spring+Ibatis整合框架搭建配置文档
侵权投诉

Struts+Spring+Ibatis整合框架搭建配置文档

Struts+Spring+Ibatis整合框架搭建配置文档

二、对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"> <value>${jdbc.username}</value> </property> <property name="password"> <value>${jdbc.password}</value> </property> <property name="minIdle"> <value>1</value> </property> <property name="maxActive">

上一页第2页

你可能喜欢

  • struts框架
  • struts+spring
  • spring入门
  • spring开发指南
  • springfestival
  • 游戏框架设计

热门文档

相关文档

  • Struts+Spring+Ibatis整合框架搭建配置文档

    Struts+Spring+Ibatis整合框架搭建配置文档_IT/计算机_专业资料。Struts + Spring +ibatis 整合开发步骤Struts + Spring +ibatis 整合开发步骤: 整合开发步骤: 一....

  • Struts+Spring+Ibatis整合框架搭建配置文档

    Struts+Spring+Ibatis整合框架搭建配置文档_计算机软件及应用_IT/计算机_专业资料。Struts+Spring+Ibatis整合框架搭建配置文档Struts + Spring +ibatis 整合开发步骤: ...

  • struts+spring+ibatis框架集成

    Spring2.5、 Struts2、 Ibatis 开发框架搭建 (一) 一、框架下载 1.1 Struts2 框架 Struts2 框架发展于 WebWork,现在捐献给了 Apache 开源组织,最新版本的 ...

  • SSI整合--搭建Struts2+Spring+Ibatis框架

    SSI整合--搭建Struts2+Spring+Ibatis框架_IT/计算机_专业资料。搭建Struts2+Spring+Ibatis框架,各个配置文件详解,本人受益匪浅!-SSI 整合---搭建 Struts2+Spring...

  • SPring+Struts+IBatis整合文档

    二、创建一个数据库,建一个简单的表,表结构可以参考: 搭建项目整合 Spring、Struts、Ibatis 主要是配置 4 个文件分别是 ApplicationContext.xml 此为 Spring 的...

  • struts2+spring+ibatis框架整合

    struts2+spring+ibatis框架整合_计算机软件及应用_IT/计算机_专业资料。struts2+spring+ibatis框架整合的小实例。开发工具 Eclipse 3.3 Tomcat 6.0 运行坏境 ...

  • Velocity+Spring+Ibatis框架搭建说明文档

    password=liusheng 4 Velocity+Spring+Ibatis 框架集成说明文档 四.配置 web.xml... struts+spring+ibatis框... 10页 免费 ibatis框架搭建顺序及个... 7页 ...

  • 用JSF+Spring+IBatis搭建一个简单框架

    SSI整合--搭建Struts2+S... 8页 1下载券 jsf+spring+iBatis系统分... ...IBatis的SqlMap文件SqlMapConfig.xml和JSF的配置文件faces-config.xml:该怎么写 ...

  • struts+spring+iBatis整合

    struts+spring+iBatis整合struts+spring+iBatis整合隐藏>> struts+spring+iBatis 整合将 Struts、Spring 和 ibatis 的组合在一起 Struts 仍然是只负责 MVC 这部分...

站点地图 | 文档上传 | 侵权投诉 | 手机版
本站所有资源均来自互联网,本站只负责收集和整理,均不承担任何法律责任,如有侵权等其它行为请联系我们.
文档下载 Copyright 2013 doc.guandang.net All Rights Reserved.  -  email