09 2019 档案
完美解决: org.apache.ibatis.binding.BindingException Invalid bound statement (not found)
摘要:异常描述: org.apache.ibatis.binding.BindingException: Invalid bound statement (not found) 原因: springboot整合mybatis, 在编译时, 如果不添加此节点mybatis的mapper.xml文件都会被漏掉
阅读全文
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [spring-mybatis.xml]: Initialization of bean failed
摘要:
阅读全文
启动项目报错:Unsupported major.minor version 52.0
摘要:解决方案: 确保Build Path或者电脑配置的环境变量版本号,和pom中的一致 Exception in thread "main" java.lang.UnsupportedClassVersionError: com/demo/pringboot/Application : Unsuppor
阅读全文
hibernate如何配置自动生成表
摘要:hibernate自动生成表有两种方法:1.直接写代码,通过方法来创建数据库表。2.通过 hibernate.cfg.xml配置标签来创建数据表。下面依次实现:1.直接写代码,通过方法来创建数据库表。建立一个测试类,来测试是否能够生成表。不过在执行该类之前,需要手动在数据库中建立相应的数据库,数据库
阅读全文
rg.hibernate.NonUniqueObjectException: a different object with the same identifier value was already associated with the session:
摘要:原先跑TEST CASE的时候没有出错 但是跑到整个程序里面,除了这个问题, 网上也找了下资料,说是用merge之类的可以解决,因为你这个update的obj和session里面的不用,所以导致此问题。 突然石化~~~想到session~~~想到TESTcase的时候没有用事物aop所以每个方法都是
阅读全文
org.apache.jasper.JasperException: The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application
摘要:编程中遇到:org.apache.jasper.JasperException: The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files dep
阅读全文