Administrator
2023-04-21 195945efc5db921a4c9eb8cf9421c172273293f5
提交 | 用户 | 时间
58d006 1 <?xml version="1.0" encoding="UTF-8"?>
A 2 <beans xmlns="http://www.springframework.org/schema/beans"
3     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:util="http://www.springframework.org/schema/util"
4     xmlns:aop="http://www.springframework.org/schema/aop" xmlns:context="http://www.springframework.org/schema/context"
5     xmlns:tx="http://www.springframework.org/schema/tx"   xmlns:mvc="http://www.springframework.org/schema/mvc"
6     
7     xsi:schemaLocation="http://www.springframework.org/schema/beans 
8     http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
9     http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.0.xsd
10     http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd
11     http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
12     http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
13     http://www.springframework.org/schema/mvc  
14     http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd">
15     <bean class="org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping"></bean>
16     <bean class="org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter"></bean>
17     
18     
19     <bean id="viewresolver" class="org.springframework.web.servlet.view.UrlBasedViewResolver">
20         <property name="cache" value="false"></property>
21         <property name="viewClass" value="com.mandi.springmvc.FaceletView"></property>
22         <property name="prefix" value=""></property>
23         <property name="suffix" value=".xhtml"></property>
24     </bean>
25     
26     <context:annotation-config />
27     <context:component-scan base-package="com.mandi.**.controller">
28         <context:exclude-filter type="annotation" expression="org.springframework.stereotype.Service"/>
29     </context:component-scan>
30     
31     
32      
33     <mvc:interceptors>
34             <bean class="com.mandi.springmvc.logs.LogsInterceptor"></bean>
35      </mvc:interceptors>    
36
37 </beans>