SSM项目中Junit4单元测试报错
1、Error creating bean with name 'org.springframework.web.servlet.resource.ResourceHttpRequestHandler#0
解决办法:添加@WebAppConfiguration("src/main/java/resources")
2、Error creating bean with name 'multipartResolver':
解决办法:因为缺少commons-fileupload包导致的,在pom中加入该依赖
3、Error creating bean with name 'mvcContentNegotiationManager'
解决办法:注释掉springmvc.xml里面的注解配置