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

 

 


 

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值