标签:intern -- inf servlet 图片 .com prefix inter prope
利用注解的方式重构SpringMVC
<!--开启Controller组件扫描-->
<context:component-scan base-package="com.zixue.test"/>
<!--开启@RequestMapping注解映射-->
<mvc:annotation-driven/>
<!--配置ViewResolver组件-->
<bean id="viewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver">
<property name="prefix" value="/WEB-INF/jsp/"></property>
<property name="suffix" value=".jsp"></property>
</bean>
标签:intern -- inf servlet 图片 .com prefix inter prope
原文地址:https://www.cnblogs.com/erbinok/p/9037433.html