SSM-springMvc配置文件

 1 <?xml version="1.0" encoding="UTF-8"?>
 2 <beans xmlns="http://www.springframework.org/schema/beans"
 3        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 4        xmlns:context="http://www.springframework.org/schema/context"
 5        xmlns:mvc="http://www.springframework.org/schema/mvc"
 6        xsi:schemaLocation="http://www.springframework.org/schema/beans
 7       http://www.springframework.org/schema/beans/spring-beans-4.3.xsd
 8       http://www.springframework.org/schema/mvc
 9       http://www.springframework.org/schema/mvc/spring-mvc.xsd
10       http://www.springframework.org/schema/context
11       http://www.springframework.org/schema/context/spring-context.xsd">
12       <!--扫描注解包-->
13       <context:component-scan base-package="cn.leon"></context:component-scan>
14       <!--注解-->
15       <mvc:annotation-driven conversion-service="conversionService"></mvc:annotation-driven>
16       <!--视图解析器-->
17       <bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
18           <property name="viewClass" value="org.springframework.web.servlet.view.JstlView"></property>
19           <property name="prefix" value="/WEB-INF/view/"></property>
20           <property name="suffix" value=".jsp"></property>
21       </bean>
22       <!--转换器-->
23       <bean id="conversionService" class=" org.springframework.format.support.FormattingConversionServiceFactoryBean">
24           <property name="converters">
25               <bean class="cn.leon.converter.DateConverter"></bean>
26           </property>
27       </bean>
28 </beans>

 

转载于:https://www.cnblogs.com/hudada007/p/7806478.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值