今天写ssm项目时启动tomcat运行时,出现了几个问题记录下:
- 严重: 启动过滤器错误造成java.lang.NoClassDefFoundError
解决:首先右键项目properties检查,在Deployment Assembly中检查maven dependencies是否导入,若导入找到server右键clean 下,重新update maven,再检查maven dependencies,在编译启动。
2.Request processing failed; nested exception is org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException:org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException
解决:管理员身份命令行net start mysql打开。