<?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:context="http://www.springframework.org/schema/context"
xmlns:mvc="http://www.springframework.org/schema/mvc"
xsi:schemaLocation="
http://www.springframework.org/schema/mvc
http://www.springframework.org/schema/mvc/spring-mvc-4.0.xsd
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-4.0.xsd">
<!--注解扫描器 -->
<context:component-scan base-package="ssmy.control"/>
<!--配置驱动 -->
<mvc:annotation-driven></mvc:annotation-driven>
<mvc:default-servlet-handler/>
<!--配置视图解析器 -->
<bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
<property name="prefix" value="/view/"></property>
<property name="suffix" value=".jsp"></property>
</bean>
</beans>
相关文章
- spring boot从前端获取输入框的值,保存到配置文件,工具类里获取配置文件里的值
- SpringMVC Spring MyBatis整合配置文件
- spring配置文件拆分策略及方法
- Spring Boot中yml配置文件Map集合注入及使用方式
- SSH问题:系统启动时,spring配置文件解析失败,报”cvc-elt.1: 找不到元素 'beans' 的声明“异常
- Spring学习笔记--Spring配置文件和依赖注入
- Spring配置文件解析--依赖注入
- Spring 环境与profile(三)——利用maven的resources、filter和profile实现不同环境使用不同配置文件
- Spring配置文件敏感数据加密
- maven项目在idea中spring配置文件引入xml文件和properties文件报错解决方案