使用ssm在xml中导入:
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
后,运行报错,tomcat找不到org.springframework.web.context.ContextLoaderListener。
百度许久后找到解决办法。
问题原因:
spring-web依赖没有导入。
解决办法:
一、点击右上角File,找到Project Structure...

2、如图所示,点击Put into Output Root:

问题解决:
1274

被折叠的 条评论
为什么被折叠?



