创建webapp


yml添加

<!--jsp依赖的包 不加会解析不了jsp文件 变成下载文件!!-->
<!--JSP-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
</dependency>
<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>
在构建Web应用程序时,文章提到了在YML中添加必要的依赖来支持JSP文件的解析。这包括引入spring-boot-devtools,tomcat-embed-jasper和jstl的依赖。缺少这些依赖会导致JSP文件无法正确解析,而是被当作下载文件处理。
1104





