随笔分类 - spring
摘要:转自:http://kinglixing.blog.51cto.com/3421535/723870
阅读全文
摘要:spring-nettysocketio.xml文件内容如下:
阅读全文
摘要:spring-scheduler.xml文件内容如下: execute 0/3 * * * * ? ...
阅读全文
摘要:spring-rabbitmq.xml文件内容如下: -->
阅读全文
摘要:spring-ehcache.xml文件内容如下: ehcache.xml文件内容如下: ...
阅读全文
摘要:1、首先pom.xml文件里面需要用到的jar配置: org.springframework spring-tx 4.0.3.RELEASE com.alibaba druid 0.2.9 mysql mysql-connector-j...
阅读全文
摘要:Spring配置文件中关于事务配置总是由三个部分组成,分别是DataSource、TransactionManager和代理机制这三部分,无论哪种配置方式,一般变化的只是代理机制这部分。DataSource、TransactionManager这两部分只是会根据数据访问方式有所变化,比如使用Hibe...
阅读全文
摘要:SqlSessionTemplate是MyBatis-Spring的核心。这个类负责管理MyBatis的SqlSession。调用MyBatis的SQL方法。SqlSessionTemplate是线程安全的,可以被多个DAO所共享使用。SqlSessionTemplate对象可以使用SqlSessi...
阅读全文
摘要:c3p0的jar包是:c3p0-0.9.1.jar3301000falseTestfalse100nullfalse60360151003rootpasswordselect id from test where id=1300falsetrueroot
阅读全文
摘要://PropertyPlaceholderConfigure读取配置文件 classpath:init-config.properties //enable component scanning(beware that this does not enable map...
阅读全文
浙公网安备 33010602011771号