首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 开源软件 >

简略spring applicationContext和dispatcherServlet

2013-07-16 
简单spring applicationContext和dispatcherServletbeans xmlnshttp://www.springframework.org/schema

简单spring applicationContext和dispatcherServlet
<beans xmlns="http://www.springframework.org/schema/beans"
?xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"
?xmlns:context="http://www.springframework.org/schema/context"
?xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd">
?<context:component-scan base-package="org.springframework.samples.petclinic.web" />

?<bean id="velocityConfig"
??value="/WEB-INF/velocity/" />
?</bean>
?<!-- View resolvers can also be configured with ResourceBundles or XML files.
??If you need different view resolving based on Locale, you have to use the
??resource bundle resolver. -->
?<bean id="viewResolver"
??value="true" />
??<property name="prefix" value="" />
??<property name="suffix" value=".vm" />
?</bean>
</beans>

?

热点排行