
Spring3
merit
这个作者很懒,什么都没留下…
展开
-
spring BeanCreationException confusion about mapping
在进行spring3+rest配置时,出现了以下的错误:Cannot map handler 'usersAction' to URL path [/user/register/{id}]: There is already handler of type [class com.changetech.action.UsersAction] mapped.通过在网上查找答案以及分析问题原因,...原创 2012-05-31 20:08:21 · 100 阅读 · 0 评论 -
saveOrUpdate is not valid without active transaction
在使用Spring+Hibernate的框架时,在applicationContext.xml中配置了如下的代码片段: <bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean"> <property name="dataSource">...原创 2012-06-03 13:07:50 · 410 阅读 · 0 评论 -
Bean named '*' must be of type [*], but was actually of type [$Proxy16]
在用junit测试dao接口时,出现以下的错误Caused by: org.springframework.beans.factory.BeanNotOfRequiredTypeException: Bean named 'userDao' must be of type [com.changetech.dao.impl.UserDaoImpl], but was actually of ty...原创 2012-06-03 14:14:41 · 611 阅读 · 0 评论 -
java.lang.NoClassDefFoundError: org.objectweb.asm.Type
在使用spring3的aop时,出现如下的错误:java.lang.NoClassDefFoundError: org.objectweb.asm.Type经过在网上查找资料说是因为Hibernate的cglib.jar包多导致的,但是移除此jar包,则又会报如下的错误:Cannot proxy target class because CGLIB2 is not availa...原创 2012-06-03 15:27:12 · 122 阅读 · 0 评论