Tomcat启动没反应
IDEA运行环境,Spring+SpringMvc+Mybatis,运行项目报错
控制台显示以下错误
19-May-2021 21:30:43.204 涓ラ噸 [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start. Full details will be found in the appropriate container log file
19-May-2021 21:30:43.207 涓ラ噸 [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal Context [/test1_war_exploded] startup failed due to previous errors
19-May-2021 21:30:43.204 涓ラ噸 [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start. Full details will be found in the appropriate container log file
19-May-2021 21:30:43.207 涓ラ噸 [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal Context [/test1_war_exploded] startup failed due to previous errors
解决办法
1、依次检查pom.xml,web.xml,applicationContext.xml,springMvc.xml配置文件
2、如果以前能打开web项目,添加了mapper.xm文件之后,出现此问题,检查mapper文件。重点检查resultMap标签里数据库和声明的变量是否能对应,且声明类型正确
<result property="addTime" column="addTime" jdbcType="TIMESTAMP"/>
修改之后,正常启动