找不到Spring Boot JSP

Wer*_*dve 1 spring jsp heroku spring-boot

在我的Spring Boot应用程序中,我从Thymeleaf切换到JSP,并且在我的本地计算机上正常运行,但是当我将其上传到Heroku服务器时,我得到了
There was an unexpected error (type=Not Found, status=404). /WEB-INF/jsp/home.jsp

它的jar打包了,如果它在本地运行而不在Heroku服务器上工作,这意味着什么?

编辑,项目结构 在此处输入图片说明

Koh*_*URA 5

尝试将其添加到pom.xml

    <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>

    <dependency>
        <groupId>javax.servlet</groupId>
        <artifactId>jstl</artifactId>
    </dependency>
Run Code Online (Sandbox Code Playgroud)

并将其添加到application.properties

spring.mvc.view.prefix=/WEB-INF/jsp/
spring.mvc.view.suffix=.jsp
Run Code Online (Sandbox Code Playgroud)

并将JSP移至src/main/webapp/WEB-INF/jsp