- 浏览: 4408 次
- 性别:
- 来自: 桂林
文章列表
java.lang.IllegalStateException: Cannot initialize context because there is already a root application context present - check whether you have multiple ContextLoader* definitions in your web.xml!
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:186)
a ...
根据网络的资料通过maven构建了一个Spring+MyBatis项目,其中pom.xml文件中引入mybatis和Spring架包:
<!-- spring webmvc -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>3.0.6.RELEASE</version>
</dependency ...