![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
异常
菜鸟的编程梦_
这个作者很懒,什么都没留下…
展开
-
java.lang.NoClassDefFoundError: org/apache/log4j/Level的解决方案
报的错误是 Failed to instantiate SLF4J LoggerFactory Reported exception: java.lang.NoClassDefFoundError: org/apache/log4j/Level at org.slf4j.LoggerFactory.bind(LoggerFactory.java:150原创 2017-05-04 21:12:37 · 61470 阅读 · 10 评论 -
The server does not support version 3.0 of the J2EE Web module specification解决方案
1.错误:在eclipse中使用run->run on server的时候,选择tomcat7会报错误:The server does not support version 3.0 of the J2EE Web module specification2.原因:Tomcat 7.0最多支持Servlet 3.0,而现在要import的项目是3.1版本的。3.解决方法:在项目根目录下有一个.s转载 2017-06-09 21:07:09 · 2077 阅读 · 0 评论 -
spring mvc 数据绑定问题 提交表单提示HTTP status 400, The request sent by the client was syntactically incorrect
我们在spring mvc 中controller方法中的参数,spring mvc会自动为我们进行数据绑定。 spring mvc 方法中不一定要全部都有 form表单提交的属性, 也可以有 请求属性中 没有的参数(这时候只会把对应不上的参数设为null),这两种情况都不会报错。 但是有几种情况会报错,可能会提示HTTP status 400, The request sent by the转载 2017-06-10 20:52:03 · 765 阅读 · 0 评论 -
【解决方法】Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1
使用hibernate的时候,抛了这个异常。先过图然后发现是我在hbm.xml映射文件中设置了主键增长策略为自增长,结果我又设置了主键的值,所以报的这个错误。解决方案: 程序中不设置主键的值。 或者把hbm.xml文件的主键增长策略改成其他的,不要是identity就行了。原创 2018-01-27 21:56:32 · 4546 阅读 · 1 评论 -
Mybatis 如何扫描多个包下的mapper,
今天做毕业设计的时候,添加了一个mapper到项目中,然后发现报了一个错误:org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultParamController': Injection of autowired dependencies failed;...原创 2018-03-18 15:36:24 · 25882 阅读 · 1 评论