- 博客(94)
- 资源 (4)
- 收藏
- 关注
原创 Caused by: java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory
Caused by: java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory
2016-08-11 19:18:33 1819
原创 Runtime "Apache Tomcat v7.0" is invalid. The specified Tomcat installation directory does not exist.
Runtime "Apache Tomcat v7.0" is invalid. The specified Tomcat installation directory does not exist.
2016-08-05 12:57:35 22902
转载 Spring注解@Component、@Repository、@Service、@Controller区别
Spring注解@Component、@Repository、@Service、@Controller区别
2016-06-23 21:03:53 729
原创 Exception in thread "main" java.lang.ClassCastException: $Proxy13
Exception in thread "main" java.lang.ClassCastException: $Proxy13
2016-06-23 17:29:18 1437 1
原创 Caused by: java.lang.ClassNotFoundException: org.aopalliance.intercept.MethodInterceptor
Caused by: java.lang.ClassNotFoundException: org.aopalliance.intercept.MethodInterceptor
2016-06-20 21:11:55 1406
原创 Spring:协调作用域不同步的Bean
在整理之前,我们首先应该了解Spring支持的五种作用域:singleton:单例模式,singleton作用域下的Bean将只产生一个实例,因此我们每次获取的实例都是同一实例。prototype:每次通过getBean()方法获取Bean实例时,都会产生一个新的Bean实例,因此每次的实例都不同request:用于Web应用,对于一次Http请求,request作用域
2016-06-07 00:10:31 1328
原创 Hibernate:Caused by: java.sql.SQLException: Incorrect string value: '\xE8\x8F异常
今天在学习Hibernate插入数据时,一直报错:Exception in thread "main" org.hibernate.exception.GenericJDBCException: could not execute statementCaused by: java.sql.SQLException: Incorrect string value: '\xE8\x
2016-05-29 21:07:58 4337 1
原创 关于Eclipse项目前有红叹号的解决方案
出现这种情况的原因就是导入的Jar路径不对,可能是因为你之前将Jar文件导入项目后,又将Jar文件换了存放位置。解决方案:右键项目工程 -> Build Path -> Configure Build Path .在出现的窗口中找到出现红色X号的jar包,这个Jar文件就是路径不对的文件,将这个Jar文件Remove掉,并重新导入Jar文件即可。
2016-05-27 23:34:13 980
原创 Exception in thread "main" org.hibernate.TransactionException: commit failed
Caused by: java.sql.SQLException: You can't operate on a closed Connection!!!
2016-05-27 19:25:07 2237
原创 Exception in thread "main" org.hibernate.HibernateException: No CurrentSessionContext configured!
Hibernate使用缓存查询时报错:Exception in thread "main" org.hibernate.HibernateException: No CurrentSessionContext configured! at org.hibernate.internal.SessionFactoryImpl.getCurrentSession(SessionFactoryImp
2016-05-27 12:58:26 975
转载 SQL、HQL中left join、right join、inner join的区别
SQL、HQL中left join、right join、inner join的区别
2016-05-19 22:00:36 5090
原创 Exception in thread "main" org.hibernate.QueryException: illegal attempt to dereference collection
Exception in thread "main" org.hibernate.QueryException: illegal attempt to dereference collection
2016-05-18 23:47:32 2105
原创 Exception in thread "main" org.hibernate.hql.internal.ast.QuerySyntaxException: unexpected token:
Exception in thread "main" org.hibernate.hql.internal.ast.QuerySyntaxException: unexpected token: p near line 1, column 45 [select distinct p from com.mao.Person pjoin p.myEvent
2016-05-18 18:18:29 6081
原创 MySQL导入.sql文件以及#1146 - Table 'hibernate.person_email' doesn't exist
这里MySQL用的是XAMPP,1:直接找到相应的数据库--->导入--->选择文件--->文件的字符集--->执行--->OK2:选择你需要导入的文件--->通过记事本打开--->复制代码--->找到相应数据库--->点击SQL--->粘贴代码--->执行--->OK今天在学习李刚老师的《轻量级JavaEE企业应用实战》时,需要导入一个data.sql文件,我按照步骤
2016-05-18 13:14:33 4209
原创 Hibernate中的级联策略和object references an unsaved transient instance - save the transient instance before
本片博文整理关于Hibernate中级联策略cascade和它导致的异常:Exception in thread "main" org.hibernate.TransientObjectException: object references an unsaved transient instance - save the transient instance before flushing: com.mao.Address
2016-05-11 21:59:34 19609 2
原创 Hibeinate: Could not determine type for: java.util.List, at table: address_inf, for columns: [org.hi
Hibernate中:Caused by: org.hibernate.MappingException: Could not determine type for: java.util.List, at table: address_inf, for columns: [org.hibernate.mapping.Column(address_Detail)]导致原因:
2016-05-11 17:32:44 4643 1
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人