In a servlet mapping in Spring MVC how do I map the root of a url pattern directory?

后端 未结 5 1506
故里飘歌
故里飘歌 2020-12-05 16:28

    testServlet
    /test/*

<         


        
5条回答
  •  情歌与酒
    2020-12-05 16:46

    A way without touch the web.xml file is by set the map to the default welcome file path.

    @RequestMapping("/index.html")
    

提交回复
热议问题