首页 > 代码库 > spring boot 添加jsp支持注意事项

spring boot 添加jsp支持注意事项


1.一定要使用war包
<packaging>war</packaging>

2.将provided改为compile,具体如下:
        <dependency>
            <groupId>org.apache.tomcat.embed</groupId>
            <artifactId>tomcat-embed-jasper</artifactId>
            <scope>provided</scope>
        </dependency>
需要修改为
    <dependency>
            <groupId>org.apache.tomcat.embed</groupId>
            <artifactId>tomcat-embed-jasper</artifactId>
            <scope>compile</scope>
        </dependency>

 




spring boot 添加jsp支持注意事项