SpringBoot 集成jsp Path with “WEB-INF“ or “META-INF“: [WEB-INF....问题
程序员文章站
2022-05-25 08:08:26
...
解决办法:
spring boot不提倡用jsp,需要在pom.xml中加入以下依赖就可以了
<!-- tomcat 依赖包 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-jasper</artifactId>
<version>8.5.20</version>
<scope>provided</scope>
</dependency>
<!-- JSTL (JSP standard Tag Library) JSP 标准标签库 -->
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
<version>1.2</version>
</dependency>
<dependency>
<groupId>org.apache.taglibs</groupId>
<artifactId>taglibs-standard-impl</artifactId>
<version>1.2.5</version>
</dependency>
上一篇: 品牌推广:裂变式营销该如何策划?
下一篇: 如何将一个热门关键词瞬间做上首页排名!