如何对根路径的拦截
2019獨角獸企業重金招聘Python工程師標準>>>
使用SpringMVC
1、在web.xml中加入如下,如果welcome-file不為空,則清空,這一步的目的是通知web服務器,根路徑你就不用管了,我(程序)自己來處理。
???????????? <welcome-file-list>?????????????? <welcome-file></welcome-file>
?????????? </welcome-file-list>
2、在某個Controller中配置對根路徑的mapping
@RequestMapping("/")public String index() {return "customer/list";}
轉載于:https://my.oschina.net/zjoschina/blog/318574
總結
- 上一篇: 操作系统的安装与启动基本原理
- 下一篇: 使用 IntraWeb (31) - I