Spring的事务管理是经常用到的,论坛里已经不知讨论了多少变了。
记录下几个讲的比较清楚的。
spring事务探索
http://www.javaeye.com/topic/11190
解惑 spring 嵌套事务
http://www.javaeye.com/topic/35907?page=1
Spring声明式事务管理源码解读
http://www.javaeye.com/topic/87426?page=1
详解spring事务属性
http://www.javaeye.com/post/282638
附:事务的概念
一.原子性(Atomic)
事务由一个或多个行 ...
downpour 写的OpenSessionInView详解
http://www.javaeye.com/topic/32001?page=1
SpringSide团队日志
http://calvin.blog.javascud.org/post/46.htm
HibernateTemplate中HibernateCallback的事务
http://www.blogjava.net/caixuetao/articles/113433.html
open session and Hibernate事务处理机制
http://blog.csdn.net/Explorering/ar ...
以前项目一直用struts,最近到别的项目组里,用spring MVC,开始看spring in action学习,
一、与struts的不同
1.Spring的整个MVC配置是基于IOC容器:
通过容器对javabean进行管理,创建对象和销毁对象,管理它的生命周期。通过IOC容器,打破了传统意义上必须使用new创建对象的说法.
使用beanfactory得到类的实例。只要在配置文件中注册javabean类。通过类的名称即可得到类的对象。
2.引如了一个新的数据类型:ModelAndView 对象.
Spring提供了明确的Model, View概念和相应的数据 ...
1)在servlet中wac
public void init(ServletConfig config) throws ServletException {
super.init(config);
WebApplicationContext wac = WebApplicationContextUtils
.getWebApplicationContext(getServletContext());
XXXService service = (XXXService) wac
.getBean("beanName");
}
2)在 ...
所作项目的spring常用配置文件,结合hibernate
1.config.properties文件//配置连接数据库的参数,和Hibernate的一些参数
#for mysql
#jdbc.driver=com.mysql.jdbc.Driver
#jdbc.url=jdbc:mysql://localhost:3306/***?useUnicode=true&characterEncoding=GBK
#jdbc.username=root
#jdbc.password=123
#hibernate.dialect=org.hibernate.dialect.MySQLDial ...
- 浏览: 105533 次
- 性别:

- 来自: 北京

- 详细资料
搜索本博客
最近加入圈子
最新评论
-
getElementById与getEleme ...
引用[u][/u][i][/i] 3.getElementsByTag ...
-- by oliavn -
getElementById与getEleme ...
1
-- by oliavn -
(转)从Coding Fan到真正 ...
几项?不知楼主定义自
-- by luven -
JfreeChart学习总结
...
-- by luven -
JfreeChart学习总结
dsdsdsds[b][/b]
-- by luven






评论排行榜