前端控制器显示不了页面

图片说明图片说明


DispatcherServlet
org.springframework.web.servlet.DispatcherServlet

    <init-param>
        <param-name>contextConfigLocation</param-name>
        <param-value>classpath:config/springmvc/springmvc.xml</param-value>
    </init-param>

    <load-on-startup>1</load-on-startup>
</servlet>

<servlet-mapping>
    <servlet-name>DispatcherServlet</servlet-name>
    <url-pattern>/</url-pattern>
</servlet-mapping>
<context:component-scan base-package="com.facelib.tt.admin.controller.*">
<context:include-filter type="annotation"
    expression="org.springframework.stereotype.Controller" />
</context:component-scan>
@Controller
public class BookInfoContrller {

    @Autowired
    private BookInfoService bookInfoService;
    @Autowired
    private BookTypeService bookTypeService;


@RequestMapping(value="/book-list",method=RequestMethod.GET)    
public ModelAndView findtype(ModelAndView model){
    Map<String, Object> queryMap =new HashMap<String, Object>();
    model.addObject("booktype",bookTypeService.findlist(queryMap));
    model.setViewName("jsp/book-list");
    return model;
}
@RequestMapping(value="/tohome")
public String tohome(){
    return "home";
}

<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>

<jsp:forward page="/WEB-INF/jsp/home.jsp">;

https://blog.csdn.net/a693490554/article/details/51279512?utm_source=blogxgwz9