- 博客(8)
- 收藏
- 关注
原创 Filter mapping specifies an unknown filter name encodingFilter
本人用的是hibernate-validator5.2.4 从网上查了一下,是因为版本太高,用4的版本就可以End event threw exceptionjava.lang.reflect.InvocationTargetExceptionat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.r
2016-03-28 10:31:42 3327
原创 junit 测试保存 未加@Modifying,@Transactional(readOnly=false)报错
修改 添加删除都需要加上事务,按业务事务也需要加上 未加Modifying@Query("update Employee e set e.email=:email where e.id=:id")public int updateEmailByID(@Param("id")Long id,@Param("email")String email);org.springfram
2016-03-22 13:49:30 1598
原创 在启动web项目的时候出现java.lang.NoSuchFieldError: TRACE的缘由
首先下你看一下这个异常:NoSuchFieldError 提示的是与项目的log版本发生冲突我的项目用的是log1.2.8 解决方案是换掉这个版本就可以了我换过之后的是1.2.15严重: Exception sending context initialized event to listener instance of class org.springframework.web.co
2016-03-18 17:15:33 3867
原创 detached entity passed to persist: com.china.user.entity.Employee
是因为在在保存的时候,不经意间为id赋值,导致的javax.persistence.PersistenceException: org.hibernate.PersistentObjectException: detached entity passed to persist: com.china.user.entity.Employeeat org.hibernate.ejb.Abstr
2016-03-14 17:03:16 708
原创 spring常见错误之columnNumber: 79; cvc-complex-type.2.4.a: 发现了以元素 'bean' 开头的无效内容
原来是在配置文件中,缺少结束标签。太不认真了org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 61 in XML document from class path resource [druid/spring.xml] is invalid; nested exception is org.x
2016-02-18 17:38:36 6206 2
原创 spring常见错误之cvc-complex-type.2.4.a: 发现了以元素 'bean' 开头的无效内容
原来是在配置文件中,缺少结束标签。太不认真了org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 61 in XML document from class path resource [druid/spring.xml] is invalid; nested exception is org.x
2016-02-18 17:36:44 16999 3
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人