
低级bug
文章平均质量分 52
专治八阿哥的孟老师
小破站UP主,教程分享、课程设计、毕业设计
展开
-
Commons BeanUtils映射Date类型
表单提交时,需要将请求参数映射到实体类中的Date类型,代码报错。解决日期转换的问题,需要指定一个日期转换格式。原创 2024-09-18 10:20:06 · 257 阅读 · 0 评论 -
UnsatisfiedDependencyException NoSuchBeanDefinitionException
2018-01-06 15:09:14,361 WARN [org.springframework.web.context.support.XmlWebApplicationContext] - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.原创 2018-01-06 15:11:43 · 2137 阅读 · 2 评论 -
java.lang.StackOverflowError
2018-01-06 15:20:13,486 DEBUG [org.springframework.web.servlet.mvc.annotation.ResponseStatusExceptionResolver] - Resolving exception from handler [public java.util.List<com.ssm.blog.pojo.Category&g...原创 2018-01-06 15:21:13 · 7693 阅读 · 1 评论 -
org.hibernate.boot.MappingNotFoundException: Mapping (RESOURCE) not found
org.hibernate.boot.MappingNotFoundException:Mapping (RESOURCE) not found : com/pojo/Dept.hbm.xml :origin(com/pojo/Dept.hbm.xml)执行Hibernate的时候,报错说Mapping文件找不到。检查后发现路径没有错,使用idea+maven创建的项目。maven默认的只编译加载...原创 2018-04-20 16:33:40 · 2626 阅读 · 4 评论 -
org.hibernate.MappingException: Unknown entity: com.pojo.Dept
未知实体。出现这种情况可能有如下原因:1.没有写Mapping映射文件。2.映射文件中的class类名路径写错了,不是实体类的全路径3.没有在hibernate.cfg.xml的<session-factory>中加载映射文件,注意<mapping>节点出现的位置在<property>之后<mapping resource="com/pojo/Dept.h...原创 2018-04-20 16:40:53 · 890 阅读 · 0 评论 -
org.hibernate.MappingException: Repeatedcolumn in mapping for entity
org.hibernate.MappingException: Repeatedcolumn in mapping for entity: com.pojo.Employee column: dept_id (should bemapped with insert="false" update="false")实体类中写两个属性private Integer deptId;private Dept...原创 2018-04-20 17:03:16 · 1883 阅读 · 1 评论 -
org.hibernate.PropertyNotFoundException:Could not locate getter method for property
org.hibernate.PropertyNotFoundException:Could not locate getter method for property [com.pojo.Dept#id]或者:org.hibernate.PropertyNotFoundException:Could not locate setter method for property [com.pojo.D...原创 2018-04-20 17:16:42 · 2833 阅读 · 1 评论 -
org.hibernate.TransientObjectException: object references an unsaved transient instance
ERROR: HHH000346: Errorduring managed flush [org.hibernate.TransientObjectException: object references an unsaved transient instance - save thetransient instance beforeQuery flushing: com.pojo.Employe...原创 2018-04-20 17:17:57 · 533 阅读 · 2 评论 -
org.springframework.beans.NotWritablePropertyException
Caused by:org.springframework.beans.factory.BeanCreationException: Error creating beanwith name 'master1' defined in class path resource [spring-config.xml]: Error setting property values; nested exce...原创 2018-04-20 17:19:21 · 406 阅读 · 3 评论 -
UnsatisfiedDependencyException NoUniqueBeanDefinitionException
06-Jan-2018 15:39:27.905 SEVERE [http-nio-8080-exec-3] org.apache.catalina.core.ApplicationContext.log StandardWrapper.Throwable org.springframework.beans.factory.UnsatisfiedDependencyException: E原创 2018-01-06 15:40:37 · 456 阅读 · 0 评论 -
springMVC中ajax请求响应406
The resource identified by this request is only capable of generating responses with characteristics not acceptable according to the request "accept" headers.意思是请求不被接受。出现这种情况一般都是用了@ResponseBody注解,而s原创 2018-01-06 14:23:01 · 524 阅读 · 0 评论 -
MalformedByteSequenceException: 3 字节的 UTF-8 序列的字节 2 无效。
'sqlSessionFactory' defined in class path resource [spring-config.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resour原创 2018-01-06 14:39:40 · 2831 阅读 · 1 评论 -
Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias
Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'blogServiceImpl': Uns原创 2018-01-06 11:40:27 · 26235 阅读 · 3 评论 -
Could not get JDBC Connection;java.net.ConnectException: Connection refused: connect
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failureThe last packet sent successfully to the server was 0 milliseconds ago. The driver has not received a原创 2018-01-06 09:02:29 · 602 阅读 · 1 评论 -
Access denied for user 'xxx'@'localhost'
### Error querying database. Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorExcep原创 2018-01-06 09:19:07 · 2178 阅读 · 1 评论 -
MySQLIntegrityConstraintViolationException: Column 'ID' in where clause is ambiguous
### Error querying database. Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Column 'ID' in where clause is ambiguous### The error may exist in file [E:\1715\ssm-原创 2018-01-06 09:22:38 · 1565 阅读 · 0 评论 -
Invalid bound statement (not found)
06-Jan-2018 09:43:27.634 SEVERE [http-nio-8080-exec-6] org.apache.catalina.core.StandardWrapperValve.invoke Servlet.service() for servlet [springMVC] in context with path [] threw exception [Request p原创 2018-01-06 09:45:16 · 720 阅读 · 0 评论 -
Result Maps collection does not contain value for.blog.dao.BlogDAO.int
mybatis中报错:6-Jan-2018 12:08:04.280 SEVERE [http-nio-8080-exec-7] org.apache.catalina.core.StandardWrapperValve.invoke Servlet.service() for servlet [springMVC] in context with path [] threw exceptio原创 2018-01-06 11:51:00 · 990 阅读 · 0 评论 -
springMVC中404可能出现的原因
1. 如果tomcat启动正常的话,就检查springMVC的配置,如果tomcat启动 都报错,就找原因去吧。2. 地址不正确或没有响应1) 检查Controller类上是否有@Controller注解。@RequestMapping加了没有,是不是在类上面加了父路径了?2) 检查SpringMVC的配置文件是否扫描了Controller所在的包原创 2018-01-06 13:45:54 · 7369 阅读 · 0 评论 -
ContainerBase.addChild:start: org.apache.catalina.LifecycleException
08-Jan-2018 18:09:35.325 严重 [RMI TCP Connection(4)-127.0.0.1] org.apache.tomcat.util.modeler.BaseModelMBean.invoke Exception invoking method manageApp java.lang.IllegalStateException: ContainerBase.ad...原创 2018-01-08 18:20:53 · 22550 阅读 · 0 评论