Spring Boot Server 配置
2017-07-05 00:00
232 查看
如果修改spring boot 默认端口号及上下文
可以通过在application.properties中增加以下内容进行配置:
通过application.properties还可以配置server的其它信息
另可以参观以下贴子了解其它配置信息:
http://www.cnblogs.com/softidea/p/6068128.html
可以通过在application.properties中增加以下内容进行配置:
######################################################## ###server ######################################################## #spring boot 默认端口号为8080,可以通过server.port进行修改 server.port=8081 #spring boot 默认上下文为/,可以通过server.context-path进行修改 server.context-path=/spring-boot
通过application.properties还可以配置server的其它信息
#session超时时间 #server.session-timeout= # session timeout in seconds #servlet访问路径 #server.servlet-path= # the servlet path, defaults to '/' #Tomcat的最大线程数 #server.tomcat.max-threads = 0 # number of threads in protocol handler #Tomcat url的编码格式 #server.tomcat.uri-encoding = UTF-8 # character encoding to use for URL decoding
另可以参观以下贴子了解其它配置信息:
http://www.cnblogs.com/softidea/p/6068128.html
相关文章推荐
- SpringBoot-05server的一些配置
- SpringBoot配置属性之Server
- Spring Boot的Server配置信息
- SpringBoot配置属性之Server(二)
- SpringBoot之八:配置server信息
- SpringBoot配置属性之Server
- Spring Boot Server配置描述
- SpringBoot配置属性之Server
- SpringBoot配置属性之Server
- spring-boot配置文件-Server(中文翻译)
- Spring Boot Server容器配置
- spring boot实战(第五篇)配置源码解析
- spring boot实战(第四篇)分散配置
- spring-boot 加载本地静态资源文件路径配置
- spring boot web相关配置
- spring boot实战之内嵌容器tomcat配置
- spring boot web相关配置
- Spring Boot 配置log4j
- spring mvc+mybatis+sql server简单配置
- spring boot application properties配置详解