<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:mvc="http://www.springframework.org/schema/mvc"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context.xsd
http://www.springframework.org/schema/mvc
http://www.springframework.org/schema/mvc/spring-mvc.xsd ">
<mvc:annotation-driven/>
<context:component-scan base-package="com.bruce.controller"/>
</beans>
把申明的空间写成这样就可以了
解决springmvc配置错误,通配符很全,但是没找到 <mvc:annotation-driven/>声明
最后编辑于 :
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。
推荐阅读更多精彩内容
- 1 问题描述 在车保养项目开发过程中,技术架构:Spring MVC + MyBatis;Service层接口中属...
- 上一篇:Spring学习笔记(四、Bean装配(上)) 这篇讲解Bean管理的注解实现及例子 主要内容有: Cla...
- [手把手教程][JavaWeb]优雅的SpringMvc+Mybatis应用(八) 项目github地址:http...
- 项目地址: https://github.com/wangliang0209/SpringMVCMybatisDe...
- 今天由于项目需要,简单的配置了一下ssm框架,maven配置所需包,可直接粘贴复制 maven依赖 <depend...