1234567891011121314151617 |
- <?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"
- xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/context https://www.springframework.org/schema/context/spring-context.xsd">
- <!--配置扫描的包-->
- <context:component-scan base-package="com"></context:component-scan>
- <!-- 配置强大的视图解析器-->
- <bean id="internalResourceViewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver">
- <!-- 前缀-->
- <property name="prefix" value="/WEB-INF/views/"></property>
- <!-- 后缀-->
- <property name="suffix" value=".jsp"></property>
- </bean>
- </beans>
|