您的位置:首页 > 运维架构 > Tomcat

012-Spring Boot web【一】创建、请求、使用jsp、freemarker,tomcat、jetty

2018-02-01 23:19 477 查看

一、项目搭建

同:http://www.cnblogs.com/bjlhx/p/8324971.html

1)新建maven项目→使用默认配置即可

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-jetty</artifactId>
</dependency>


View Code
注意查看

spring-boot-autoconfigure包,在org.springframework.boot.autoconfigure.web.ServerProperties中查看,如何配置web容器配置

server.port=8080
server.contextPath=/


注意:善用contextPath做虚拟目录
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: