Spring boot之配置server信息
知识点:
1.修改端口号
2.修改context-path
3.其它配置说明
配置端口号:
Spring boot 默认端口是8080,
如果想要进行更改的话,
只需要修改applicatoin.properties文件,
在配置文件中加入: server.port=8081
配置context-path
在application.properties进行配置:
server.context-path=/spring-boot
访问地址就是http://ip:port/spring-boot
其它server配置
#server.port=8080
#server.address= # bind to a specific NIC
#server.session-timeout= # session timeout in seconds
#the context path, defaults to '/'
#server.context-path=/spring-boot
#server.servlet-path= # the servlet path, defaults to '/'
#server.tomcat.access-log-pattern= # log pattern of the access log
#server.tomcat.access-log-enabled=false # is access logging enabled
#server.tomcat.protocol-header=x-forwarded-proto # ssl forward headers
#server.tomcat.remote-ip-header=x-forwarded-for
#server.tomcat.basedir=/tmp # base dir (usually not needed, defaults to tmp)
#server.tomcat.background-processor-delay=30; # in seconds
#server.tomcat.max-threads = 0 # number of threads in protocol handler
#server.tomcat.uri-encoding = UTF-8 # character encoding to use for URL decoding
最新文章
- mysql mybatis-generator plugin 有page实体类的分页
- 1036. Crypto Columns 2016 11 02
- BZOJ3172[Tjoi2013]单词 题解
- ACM Greedy Mouse
- Jenkins学习八:Jenkins语言本地化
- Swift学习笔记
- python set add 导致问题 TypeError: unhashable type: 'list'
- Java总结反射
- 查看.netframeword版本
- does not support ASP.NET compatibility 错误
- BZOJ 2820 YY的GCD(莫比乌斯函数)
- Content-Type
- iOS很重要的 block回调
- 每天一个Linux命令 5
- TCP与UDP区别总结
- uiautomator2 使用Python测试 Android应用
- 小妖精的完美游戏教室——人工智能,A*算法,结点篇
- 如何在mpvue下收集小程序的formId
- BZOJ.4821.[SDOI2017]相关分析(线段树)
- 基于DobboX的SOA服务集群搭建