Spring mvc *-servlet.xml 配置

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd" >
<beans>
<bean id="welcome" class="web.action.Welcome" >
<property name="userBiz" ref="userBiz"></property>
</bean>
<bean id="userBiz" class="biz.impl.UserBizImpl" ></bean>
<bean id="simpleUrlMapping"
class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
<property name="mappings">
<props>
<prop key="/welcome.do">
welcome
</prop>
</props>
</property>
</bean>
<bean id="viewResolver"
class="org.springframework.web.servlet.view.InternalResourceViewResolver">
<property name="viewClass">
<value>org.springframework.web.servlet.view.JstlView</value>
</property>
<!--<property name="prefix"><value>/WEB-INF/</value></property>-->
<property name="suffix"><value>.jsp</value></property>
</bean>

</beans>

你可能感兴趣的:(spring,xml,mvc,bean,servlet)