springboot使用jsp
程序员文章站
2022-05-26 10:01:20
...
引入坐标
<dependency>
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-jasper</artifactId>
</dependency>
<dependency>
<groupId>jstl</groupId>
<artifactId>jstl</artifactId>
<version>1.2</version>
</dependency>
server.port=8888
server.servlet.context-path=/shiro
spring.application.name=shiro
spring.mvc.view.prefix=/
spring.mvc.view.suffix=.jsp
在main目录新建webapp
防止页面乱码
<%@page contentType="text/html; UTF-8" pageEncoding="UTF-8" isELIgnored="false" %>