springboot如何使用jsp

1.springboot默認是不支持jsp的,要想用jsp的話,需要導一個插件,在pom.xml裏添加依賴 <dependency> <groupId>org.apache.tomcat.embed</groupId> <artifactId>tomcat-embed-jasper</artifactId> </dependency> 2.然後在src/main下面創建webapp文件
相關文章
相關標籤/搜索