自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(12)
  • 问答 (3)
  • 收藏
  • 关注

原创 org.springframework.beans.factory.NoSuchBeanDefinitionException

除了jar没导入之外,注意查看@Service @Controller等注解内是否为变量名,大小写很重要

2017-09-28 20:43:28 254

原创 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 2181

原创 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 945

原创 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 288

原创 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 1807

原创 mybatis中,<insert>标签中useGeneratedKeys和keyColumn作用

useGeneratedKeys 设置为"true"表明要 MyBatis 获取由数据库自动生成的主键;keyProperty="id"指定把获取到的主键值注入到 Student(实体类) 的 id 属性。

2017-09-17 19:43:45 11695 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 2597

原创 Junit4进行参数化测试

原文来自:http://www.cnblogs.com/byron0918/p/4801152.html  @RunWith, 当类被@RunWith注解修饰,或者类继承了一个被该注解修饰的类,JUnit将会使用这个注解所指明的运行器(runner)来运行测试,而不是JUnit默认的运行器。    要进行参数化测试,需要在类上面指定如下的运行器:  @RunWith (Pa

2017-09-10 18:17:48 675

原创 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 598

原创 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 9384 1

原创 MYSQL 1005 错误121问题

外键名不能重复,即使表不同

2017-09-07 11:30:01 568

原创 Hibernate:Could not parse mapping document from invalid mapping Could not parse mapping document

出现该问题是*.hbm.xml配置出错;例如“name”中变量的属性填写错误;列名出错等

2017-09-07 11:28:15 405

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除