- 博客(12)
- 问答 (3)
- 收藏
- 关注
原创 org.springframework.beans.factory.NoSuchBeanDefinitionException
除了jar没导入之外,注意查看@Service @Controller等注解内是否为变量名,大小写很重要
2017-09-28 20:43:28
307
原创 Hibernate 中出现 XXXX is not mapped 问题
org.springframework.orm.hibernate4.HibernateQueryException: bookinfo is not mapped [delete from bookinfo where bid = 5]; nested exception is org.hibernate.hql.internal.ast.QuerySyntaxException: bookinf
2017-09-25 15:41:25
2234
原创 Mapped Statements collection already contains value for ……
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [com/zz/sm/bean/SpringMybatis.xml]: Invocation of init method f
2017-09-25 00:39:34
984
原创 Error creating bean with name 'sessionFactory' defined in class path resource
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested
2017-09-24 20:28:54
338
原创 java.lang.NoSuchMethodError: org.springframework.aop.scope.ScopedProxyUtils.isScopedTarget(Ljava/lan
java.lang.NoSuchMethodError: org.springframework.aop.scope.ScopedProxyUtils.isScopedTarget(Ljava/lang/String;)Z at org.springframework.context.event.EventListenerMethodProcessor.afterSingletonsInst
2017-09-19 18:29:35
1856
原创 mybatis中,<insert>标签中useGeneratedKeys和keyColumn作用
useGeneratedKeys 设置为"true"表明要 MyBatis 获取由数据库自动生成的主键;keyProperty="id"指定把获取到的主键值注入到 Student(实体类) 的 id 属性。
2017-09-17 19:43:45
11822
9
原创 Mapped Statements collection already contains value for……
org.apache.ibatis.exceptions.PersistenceException: ### Error building SqlSession.### The error may exist in com/zz/dao/StudentDao.java (best guess)### The error occurred while processing mapper_resu
2017-09-17 19:22:13
2642
原创 Junit4进行参数化测试
原文来自:http://www.cnblogs.com/byron0918/p/4801152.html @RunWith, 当类被@RunWith注解修饰,或者类继承了一个被该注解修饰的类,JUnit将会使用这个注解所指明的运行器(runner)来运行测试,而不是JUnit默认的运行器。 要进行参数化测试,需要在类上面指定如下的运行器: @RunWith (Pa
2017-09-10 18:17:48
740
原创 org.hibernate.hql.internal.ast.QuerySyntaxException
org.hibernate.hql.internal.ast.QuerySyntaxException: customer is not mapped [from customer where name like ?] at org.hibernate.hql.internal.ast.util.SessionFactoryHelper.requireClassPersister(Sessi
2017-09-10 14:34:29
647
原创 reverse、inverse和converse区别
inverse:强调正反,顺序颠倒 比如数学里的反函数inverse function在某些语言里,问句的顺序是颠倒的In some languages, the word order in questions is inverted reverse:强调里外,上下颠倒,逆转 比如:他把盘子翻了过来He reverses the dish.不可逆转的失败an irreversable failur
2017-09-07 11:46:22
10141
1
原创 Hibernate:Could not parse mapping document from invalid mapping Could not parse mapping document
出现该问题是*.hbm.xml配置出错;例如“name”中变量的属性填写错误;列名出错等
2017-09-07 11:28:15
450
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人