【运行环境】
jdk1.8+eclipse+apache tomcat v7.0
【现象】
代码运行报错 org.apache.catelina.core.StandardContext listenerStart
Error creating bean with name 'sqlSessionFactory' defined in URL [file:/E:/apache-tomcat-7.0.63-windows-x64
tomcat报错
原因:没加Tomcat的jar包
选定项目,点击鼠标右键,选定 Build Path-->add Libraries...-->选择 Server Runtime-->Next-->选择Apache Tomcat v7.0 -->确定即可。