<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-tomcat</artifactId> </dependency> <dependency> <groupId>org.apache.tomcat.embed</groupId> <artifactId>tomcat-embed-jasper</artifactId> </dependency> <dependency> <groupId>javax.servlet</groupId> <artifactId>jstl</artifactId> </dependency>
spring.mvc.view.prefix=/
spring.mvc.view.suffix=.jsp
Spring Boot Web项目配置示例
本文介绍了一个Spring Boot项目的web模块配置实例,包括依赖项的定义如spring-boot-starter-web、spring-boot-starter-tomcat等,以及视图解析器的前缀和后缀设置。
369

被折叠的 条评论
为什么被折叠?



