WEB-INF not included in WebApp using SpringBoot, Spring-MVC and Maven
问题 I have a webapp using Spring-MVC built with Maven. When I generate the JAR file the app start just fine. The controller is execute but when I reach this part: @RequestMapping(value = "/test-block", method = RequestMethod.GET) public ModelAndView block(Model model) { return new ModelAndView("templates/test-block"); } I get this error: There was an unexpected error (type=Not Found, status=404). /WEB-INF/templates/test-block.jsp Note that debugging or running in the IDE works fine. My folder: