知识点:

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

最新文章

  1. mysql mybatis-generator plugin 有page实体类的分页
  2. 1036. Crypto Columns 2016 11 02
  3. BZOJ3172[Tjoi2013]单词 题解
  4. ACM Greedy Mouse
  5. Jenkins学习八:Jenkins语言本地化
  6. Swift学习笔记
  7. python set add 导致问题 TypeError: unhashable type: 'list'
  8. Java总结反射
  9. 查看.netframeword版本
  10. does not support ASP.NET compatibility 错误
  11. BZOJ 2820 YY的GCD(莫比乌斯函数)
  12. Content-Type
  13. iOS很重要的 block回调
  14. 每天一个Linux命令 5
  15. TCP与UDP区别总结
  16. uiautomator2 使用Python测试 Android应用
  17. 小妖精的完美游戏教室——人工智能,A*算法,结点篇
  18. 如何在mpvue下收集小程序的formId
  19. BZOJ.4821.[SDOI2017]相关分析(线段树)
  20. 基于DobboX的SOA服务集群搭建

热门文章

  1. js设计模式--发布订阅模式
  2. qt webengineview 加载本地资源方式
  3. 关于redis的几件小事(八)缓存与数据库双写时的数据一致性
  4. Ubuntu - 14.04下,GO语言的安装!
  5. shell条件嵌套(if条件语句)
  6. centos 7 安装 redis-5.0.5
  7. 5.(基础)tornado异步
  8. CentOS7使用阿里云的yum源
  9. FTP部署与使用
  10. libusb-test