java-Service
寂寞的流星雨
这个作者很懒,什么都没留下…
展开
-
Spring MVC 注入autowired的依赖关系失败
错误提示:Error creating bean with name 'mainController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: ...原创 2018-02-27 14:14:39 · 2439 阅读 · 0 评论 -
Servlet.service() for servlet SpringMVC threw exception
java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for com.ths.home.web.home.pollutionstatistics.mapper.pollutioncontrollevel说的是:映射语句集合不包含值因为直接通过复制粘贴错了,如下图上图是错误的XM...原创 2018-03-06 16:23:22 · 5634 阅读 · 0 评论 -
Servlet.service() for servlet SpringMVC threw exception ---- java.lang.NullPointerException
我在用Ajax 传值到后台遇到的错误,原因也简单 是因为 传来了空值,你把空值进行了处理我通过Ajax传过来,我进行前台调试的时候发现这个Ajax执行了2次(不知道为什么),第一次传值过来了,但是第二次就是空值,程序就运行报错。但是经过程序多次重新运行这个执行2次的问题又没了(真的无语死了)???总结,所有传过来需要做处理的参数最好来一个判断是否为空。这样就可以避免这样的错误了。...原创 2018-03-14 11:16:19 · 3344 阅读 · 0 评论