随笔分类 -  spring

摘要:转自:http://kinglixing.blog.51cto.com/3421535/723870 阅读全文
posted @ 2015-05-05 15:42 sunbylm 阅读(134) 评论(0) 推荐(0)
摘要:spring-nettysocketio.xml文件内容如下: 阅读全文
posted @ 2015-05-04 15:04 sunbylm 阅读(611) 评论(0) 推荐(0)
摘要:spring-scheduler.xml文件内容如下: execute 0/3 * * * * ? ... 阅读全文
posted @ 2015-05-04 15:02 sunbylm 阅读(422) 评论(0) 推荐(0)
摘要:spring-rabbitmq.xml文件内容如下: --> 阅读全文
posted @ 2015-05-04 15:01 sunbylm 阅读(620) 评论(0) 推荐(0)
摘要:spring-ehcache.xml文件内容如下: ehcache.xml文件内容如下: ... 阅读全文
posted @ 2015-05-04 14:59 sunbylm 阅读(233) 评论(0) 推荐(0)
摘要:1、首先pom.xml文件里面需要用到的jar配置: org.springframework spring-tx 4.0.3.RELEASE com.alibaba druid 0.2.9 mysql mysql-connector-j... 阅读全文
posted @ 2015-04-24 12:06 sunbylm 阅读(5889) 评论(1) 推荐(0)
摘要:Spring配置文件中关于事务配置总是由三个部分组成,分别是DataSource、TransactionManager和代理机制这三部分,无论哪种配置方式,一般变化的只是代理机制这部分。DataSource、TransactionManager这两部分只是会根据数据访问方式有所变化,比如使用Hibe... 阅读全文
posted @ 2015-03-24 17:50 sunbylm 阅读(157) 评论(0) 推荐(0)
摘要:SqlSessionTemplate是MyBatis-Spring的核心。这个类负责管理MyBatis的SqlSession。调用MyBatis的SQL方法。SqlSessionTemplate是线程安全的,可以被多个DAO所共享使用。SqlSessionTemplate对象可以使用SqlSessi... 阅读全文
posted @ 2015-03-24 16:14 sunbylm 阅读(315) 评论(0) 推荐(0)
摘要:c3p0的jar包是:c3p0-0.9.1.jar3301000falseTestfalse100nullfalse60360151003rootpasswordselect id from test where id=1300falsetrueroot 阅读全文
posted @ 2015-03-24 15:53 sunbylm 阅读(257) 评论(0) 推荐(0)
摘要://PropertyPlaceholderConfigure读取配置文件 classpath:init-config.properties //enable component scanning(beware that this does not enable map... 阅读全文
posted @ 2015-03-24 15:30 sunbylm 阅读(104) 评论(0) 推荐(0)