
spring framework
winter2summer
与其欣赏别人的故事,不如演绎自己的人生!
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
走进Spring Framework
The Spring Framework is an application framework and inversion of control container for the Java platform. The framework's core features can be used by any Java application, but there are exte转载 2017-03-07 23:19:10 · 819 阅读 · 0 评论 -
使用spring配合Junit进行单元测试的总结
1.直接对spring中注入的bean进行测试(以DAO为例):在测试类上添加@RunWith注解指定使用springJunit的测试运行器,@ContextConfiguration注解指定测试用的spring配置文件的位置之后我们就可以注入我们需要测试的bean进行测试,Junit在运行测试之前会先解析spring的配置文件,初始化spring中配置的bean@RunW转载 2017-04-24 10:53:45 · 943 阅读 · 0 评论 -
Spring连接数据源的几种方式
spring使用连接池有很多种方式,jdbc(不使用连接池),c3p0,dbcp,jndi,下面将分别贴代码介绍这几种:最后面有比较完整的配置 1.jdbc方式 使用的是DriverManagerDataSource,DriverManagerDataSource建立连接是只要有连接就新建一个connection, 根本没有连接池的作用1转载 2017-03-14 23:29:57 · 641 阅读 · 0 评论 -
spring-framework-reference
I am here!原创 2017-03-08 22:43:11 · 515 阅读 · 0 评论 -
使用spring遇到"BeanNotOfRequiredTypeException......but was actually of type [com.sun.proxy.$Proxy18]"异常
问题描述:在使用aspectJ申明事务管理时出现的异常org.springframework.beans.factory.BeanNotOfRequiredTypeException: Bean named 'accountServiceImpl' must be of type [com.cc.spring.demo4.AccountServiceImpl],bu转载 2017-04-24 12:35:07 · 3750 阅读 · 0 评论