Idea整合SSM框架出现:applicationcontext in module file is included in 5 contexts

时间:2024-03-16 13:21:18

错误:

Idea整合SSM框架出现:applicationcontext in module file is included in 5 contexts

分析:

编译器自动导入配置文件的时候发生了某些错误,所以需要修改配置

解决办法:

打开 Project Settings -> Modules -> Spring,点击减号-删除右侧所有配置文件,然后再次点击加号+重新导入该项目所有的配置文件,如下图:

点击减号-:

Idea整合SSM框架出现:applicationcontext in module file is included in 5 contexts
点击加号+:

Idea整合SSM框架出现:applicationcontext in module file is included in 5 contexts
之后弹窗就消失了