老师的JSPS建立在WEB-INF下,为什么还能读取home.jsp呢?不是应该受限访问么?
@Controller
@RequestMapping("/hello")
public class HelloMVCController {
@RequestMapping("/mvc")
//host:8080/hello/mvc
public String helloMvc() {
return "home";
}
}
@Controller
@RequestMapping("/hello")
public class HelloMVCController {
@RequestMapping("/mvc")
//host:8080/hello/mvc
public String helloMvc() {
return "home";
}
}
2017-12-24
举报