0

1

回答

609 浏览

Hibernate4+spring3.2整合事物问题[已解决]0

首先描述下环境,使用spring3.2MVC+hibernate 4.2.1 问题:事务不提交,session不关闭 测试过程: 1、使用openSession(),手动开启事物,关闭事物没问题 2、使用getCurrentSession(),单元测试没问题,集成之后事务回滚 声明:代码逻辑没有错误。 单元测试父类 @RunWith(SpringJUnit4ClassRunner.class) ...

2014年12月12日 18:06
0

2

回答

2799 浏览

Mybatis的Mapped Statements collection是这么来的?还有必须定义DAO层接口吗?[已解决]5

最近在用spring和mybatis做一个项目,我想知道mybatis的Mapped Statements collection是怎么来的啊? 如果没定义和mapper配置文件名一样的dao层接口,就会报错:Mapped Statements collection does not contain value for xxx,所以就想问一下这里必须要定义那个dao层的interface吗? 比如说 ...

2014年5月09日 15:26
0

5

回答

3018 浏览

SPRING搞来搞去,现在又使用注解了,请问比程序中用new来实例化好吗?[已解决]0

SPRING什么依赖注入,配置文件,装配类,搞来搞去,现在又用回注解了,请问这跟程序里写new有什么不同呢?

2013年7月12日 11:04
0

1

回答

1702 浏览

急需解决spring调度的问题[已解决]25

利用spring3的task:scheduled进行任务调度处理,但是处理一段时间之后,所有的任务都停止了,没有任何的报错,有没有遇到类似情况的。。以下是代码: <description>Scheduled settings</description> <!-- Enables the Spring Task @Scheduled programming model ...

2012年12月31日 10:05
0

8

回答

884 浏览

spring3 中aop实现问题[已解决]5

新近搭建了一个spring3的项目,用户注解的方式实现aop ,在spring.xml 添加了<aop:aspectj-autoproxy /> 提示错误:Caused by: java.lang.ClassNotFoundException: org.springframework.beans.factory.parsing.ComponentRegistrar 但是spring3 的 ...

2012年3月12日 11:23
0

0

回答

2107 浏览

spring3 整合hibernate4 事务出错[已解决]3

配置文件如下 <context:component-scan base-package="xx.xx.service" /> <bean id="dataSource" class="org.springframework.jdbc.datasource.SimpleDriverDataSource"> <p ...

2012年2月11日 10:16

本周活跃投票用户

最新评论

Global site tag (gtag.js) - Google Analytics