Springboot与jsp使用404错误

未加依赖包时出现:Did not find handler method for [/WEB-INF/views/login.jsp]

加入下面依赖包:

<dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-tomcat</artifactId>
        </dependency>
        <dependency>
            <groupId>org.apache.tomcat.embed</groupId>
            <artifactId>tomcat-embed-jasper</artifactId>
        </dependency>-->

 

posted on 2018-05-18 12:04  Java挖掘机  阅读(217)  评论(0编辑  收藏  举报

导航