1.注解驱动
<mvc:annotation-driven/>
2.扫描Controller
<context:component-scan base-package=""/>
3.视图解析器
<bean class="">
<property name="" value=""/>
<property name="" value=""/>
</bean>
具体如下图:
原文地址:https://www.cnblogs.com/yuwenweisan/p/10628393.html
时间: 2024-10-09 20:44:22