springboot资源文件配置server和tomcat

server服务端相关配置

配置端口号

server.port=8088

配置context-path

server.context-path=/Hello

错误页,指定发生错误时,跳转的URL

server.error.path=/error

session最大超时时间(分钟),默认为30分钟

server.session-timeout=60

该服务绑定IP地址,启动服务器时如本机不是该IP地址则抛出异常启动失败

server.address=192.168.1.1

 

server tomcat相关配置

tomcat最大线程数,默认为200

server.tomcat.max-threads=150

tomcat的URI编码

server.tomcat.uri-encoding=UTF-8

 

你可能感兴趣的:(JAVA)