ssm框架的使用-中间出现的错误

严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'bookMapper' defined in file [D:\002Workingsoftware\001java\apache-tomcat-7.0.91\webapps\BookApp\WEB-INF\classes\com\wyq\Mapper\BookMapper.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [java.lang.Class]: Could not convert constructor argument value of type [java.lang.String] to required type [java.lang.Class]: Failed to convert value of type 'java.lang.String' to required type 'java.lang.Class'; nested exception is java.lang.IllegalArgumentException: Error loading class [com.wyq.Mapper.BookMapper]: problem with class file or dependent class.

这个是百度了一下

因为jdk1.7不支持

换成1.8就可以了

而且我查了一下

本地配的是1.8

20190131

中间遇到的有帮助的博客

怎么把javaweb项目部署到tomcat上
https://jingyan.baidu.com/article/22a299b5c6cfb09e18376a62.html
这个是更好的,部署项目
https://blog.csdn.net/ayang1986/article/details/79291426
eclipse的配置
https://www.cnblogs.com/wangpei/p/4780041.html
maven项目部署到tomcat
https://www.jb51.net/article/142790.htm
eclipse导入web项目
https://www.cnblogs.com/Marydon20170307/p/8526569.html
Eclipse导入Web项目后代码不报错但项目报错(左上角有红叉)解决方案
https://blog.csdn.net/cjiankai/article/details/79363637


经常复习erp的笔记


导入项目后出现的问题
The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
完美解决方案

必须要谢谢  把stringcannot be a strdy解决
The method getContextPath() from the type HttpServletRequest refers to the missing type
https://blog.csdn.net/home_zhang/article/details/8548560
https://blog.csdn.net/testcs_dn/article/details/36455669

项目无法放到tomcat中
add and remove tmocat version 7.0 only supports
https://jingyan.baidu.com/article/91f5db1b00a4b31c7f05e32a.html
指定文件夹输出错误日志信息
https://blog.csdn.net/yeruby/article/details/42341009

 

 


 

展开阅读全文

没有更多推荐了,返回首页