
Mybatis
dqsweet
这个作者很懒,什么都没留下…
展开
-
SSI整合--搭建Struts2+Spring+Ibatis框架
web.xml <web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee htt转载 2012-07-27 18:33:55 · 4438 阅读 · 4 评论 -
Spring 3.1.1 + mybatis 3.1.0 + struts2.3.1.2
Spring 3.1.1 + mybatis 3.1.0 + struts2.3.1.2 spring config如下: <beans xmlns="http://www.springframework.org/schema/beans" xmlns:context="http://www.springframework.org/schema/context" x转载 2012-07-27 18:49:03 · 1414 阅读 · 0 评论 -
整合Mybatis 与 Spring3
上午参考了一些文章,整合了spring+mybatis,现在共享一下。把代码帖出来,如果有什么疑问,到mybatis官网下载相关文档来看一下就可以了。如果没有基础,请看我之前发的文章。 1.实体bean package org.hyn.bean; public class User { private int id; p转载 2012-07-27 18:45:02 · 1919 阅读 · 0 评论 -
Mybatis 中获得 connection
@Autowired private SqlSession sqlSession; public Connection getConnection(){ Connection conn = null; try { conn = sqlSession.getConfigura转载 2012-07-30 19:02:21 · 16816 阅读 · 1 评论 -
SSI框架整合
SSI框架整合 开发工具: MyEclipse8.5 框架版本: struts2、spring2.5、ibatis 打开MyEclipse8.5新建一个web project如图: 填写完项目名称后选择Java EE 5.0,点finish 然后开始添加spring支持如图: 选择spring2.5,这里转载 2012-07-27 18:37:32 · 17124 阅读 · 6 评论