随笔分类 -  exception/error

Server Tomcat v7.0 Server at localhost failed to start.
摘要:找了几个小时没找到原因,其实就是少了一个符号的问题 原来的web.xml配置 更改后的web.xml配置 url-pattern里面少了一个 / 阅读全文

posted @ 2018-06-04 09:57 此地 阅读(293) 评论(0) 推荐(0)

maven项目启动报错;class path resource [com/ssm/mapping/] cannot be resolved to URL because it does not exist
摘要:项目启动报了一堆错误,其实都是class path resource [com/ssm/mapping/] cannot be resolved to URL because it does not exist这一个错误引起的 原来的session工厂的配置是这样写的 把classpath后加上*号 阅读全文

posted @ 2018-05-25 14:11 此地 阅读(9463) 评论(0) 推荐(2)

Maven项目启动报错:org.springframework.web.filter.CharacterEncodingFilter cannot be cast to javax.servlet.Filter
摘要:看网上说法tomcat启动时会把lib目录下的jar包加载进内存,而项目里也有相同的jar包就会导致jar包冲突 解决办法; 把pom依赖里相应的jar包添加<scope>标签 scope标签值选择provided表示项目部署时不会把这个jar包包含进去 阅读全文

posted @ 2018-05-25 13:54 此地 阅读(2016) 评论(0) 推荐(0)

maven编译项目报错,提示找不到符号或程序包XXX不存在
摘要:我的原因是maven依赖的jar包都下载了,但是引用的同一个项目下其他模块jar包找不到 解决方法: 把需要的jar包在pom里添加依赖 再次运行项目,Maven Dependencies下就会多了几个东西(不是jar包形式,搞不懂) 这个时候方法内就可以导入所需的类了 阅读全文

posted @ 2018-05-25 12:51 此地 阅读(8348) 评论(0) 推荐(0)

maven项目报错xxx cannot be resolved to a type
摘要:同一个maven项目下的不同模块,无法导入其他模块的类,其他模块的所有类都报xxx cannot be resolved to a type 解决方案(参考): 项目Build Path -->Configure Build Path -->Libraries -->Add External JAR 阅读全文

posted @ 2018-05-25 12:39 此地 阅读(1510) 评论(0) 推荐(0)

Errors occurred during the build. Errors running builder 'Validation' on pro
摘要:选择项目-->右键-->Properties-->Builders 右面有四个选项,把Validation前面勾去掉 阅读全文

posted @ 2018-01-27 21:16 此地 阅读(706) 评论(0) 推荐(0)

java.lang.IllegalStateException: Ambiguous mapping. Cannot map 'waterQuality
摘要:如果一个项目中有两个@RequestMapping("/xxx")完全相同就会报 java.lang.IllegalStateException 改进办法:修改@RequestMapping() 阅读全文

posted @ 2018-01-17 10:43 此地 阅读(3676) 评论(0) 推荐(0)

org.springframework.beans.factory.BeanCreationException
摘要:搭建ssm框架遇到的错误: 错误信息: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'studentController': Injection of autowired 阅读全文

posted @ 2018-01-08 14:48 此地 阅读(1332) 评论(0) 推荐(0)