SpringBoot 容器相关配置
1、tomcat容器
在SpringBoot中自带的容器是tomcat,所以说在建SpringBoot项目时就已经带有了tomcat容器
1、properties文件配置
# 配置服务器启动端口号
server.port=8088
# 配置上下文路径
server.servlet.context-path=/msfh
# 配置tomcat Url 编码
server.tomcat.uri-encoding=UTF-8
2、jetty容器
1、移除tomcat容器
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<!--移除tomcat容器-->
<excl