springboot之端⼝设置和contextpath的配置⽅式⽬录
端⼝设置和contextpath的配置
端⼝设置
ContextPath配置
Springboot中添加contextPath
profile配置
端⼝设置和contextpath的配置
端⼝设置
Spring boot 默认端⼝是8080,如果想要进⾏更改的话,只需要修改applicatoin.properties⽂件,在配置⽂件中加⼊:server.port= 9090
常⽤配置:
>>>>>>>>>>>#
###EMBEDDED SERVER CONFIGURATION (ServerProperties)
>>>>>>>>>>>#
spring怎么读取配置#server.port=8080
#server.address= # bind to a specific NIC
#server.session-timeout= # session timeout in seconds
#the context path, defaults to '/'
#t-path=/spring-boot
#server.servlet-path= # the servlet path, defaults to '/'
#at.access-log-pattern= # log pattern of the access log
#at.access-log-enabled=false # is access logging enabled
#at.protocol-header=x-forwarded-proto # ssl forward headers
#-ip-header=x-forwarded-for
#at.basedir=/tmp # base dir (usually not needed, defaults to tmp)
#at.background-processor-delay=30; # in seconds
#at.max-threads = 0 # number of threads in protocol handler
#at.uri-encoding = UTF-8 # character encoding to use for URL decoding
ContextPath配置
常⽤配置:
>>>>>>>>>>>#
###EMBEDDED SERVER CONFIGURATION (ServerProperties)
>>>>>>>>>>>#
#server.port=8080
#server.address= # bind to a specific NIC
#server.session-timeout= # session timeout in seconds
#the context path, defaults to '/'
#t-path=/spring-boot
#server.servlet-path= # the servlet path, defaults to '/'
#at.access-log-pattern= # log pattern of the access log
#at.access-log-enabled=false # is access logging enabled
#at.protocol-header=x-forwarded-proto # ssl forward headers
#-ip-header=x-forwarded-for
#at.basedir=/tmp # base dir (usually not needed, defaults to tmp)
#at.background-processor-delay=30; # in seconds
#at.max-threads = 0 # number of threads in protocol handler
#at.uri-encoding = UTF-8 # character encoding to use for URL decoding
Springboot中添加contextPath
profile配置
server
context-apth: /spring-boot
以上为个⼈经验,希望能给⼤家⼀个参考,也希望⼤家多多⽀持。
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
Quartz与SpringBoot集成使用
« 上一篇
SpringBoot配置文件加载顺序
下一篇 »
热门文章
-
利用正则表达式实现文本数据提取与处理
2025-02-08 -
正则表达式零宽断言详解
2025-02-08 -
文本匹配规则
2025-02-08 -
excel中使用正则
2025-02-08 -
1-31正则表达式
2025-02-08 -
anki之高级筛选
2025-02-08 -
BUAA_OO_2021_第一单元总结
2025-02-08 -
insert语句递增写法
2025-02-08 -
sublime text 3在行前插入递增数字序号的方法
2025-02-08 -
字符串只允许数字和英文的正则
2025-02-08 -
powerbuilder 正则表达式
2025-02-08 -
Shell脚本编写的高级技巧利用正则表达式进行字符串匹配
2025-02-08 -
JAVA正则表达式的三种模式:贪婪,勉强和占有的讨论
2025-02-08 -
go regexp匹配规则
2025-02-08 -
oracle regexp_substr 实现原理
2025-02-08 -
基本的元字符 回溯引用和前后查 匹配模式
2025-02-08 -
elasticsearch query dsl正则
2025-02-08 -
oracle sql正则表达式
2025-02-08 -
GA-设置目标
2025-02-08 -
仅匹配全角片假名的正则表达式
2025-02-08
最新文章
-
java正则表达式 选择题
2025-02-12 -
工龄小数点提取
2025-02-08 -
非零金额 正则表达式
2025-02-08 -
提取文本中数字的函数
2025-02-08 -
vue数字相加小数点变长-概述说明以及解释
2025-02-08 -
vue validate 正则验证小数长度
2025-02-08
发表评论