修改web.xml配置文件
原因:没有设置contextConfigLocation为空,加载了两次applicationContext-mvc.xml文件,出现两个上下文的session,因为在context-param标签中的contextConfigLocation已经加载过一次配置文件
修改的位置的位于名字为springMVC的selevt标签中
修改前:
<init-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:applicationContext-mvc.xml</param-value>
</init-param>
修改后:
<init-param>
<param-name>contextConfigLocation</param-name>
<param-value></param-value>
</init-param>