1.新建 application.properties 在resources目录下
2.添加配置信息
#端口号
server.port=8082
#最大连接数
server.tomcat.max-connections=200
#最大线程数
server.tomcat.max-threads=300
#编码方式
server.tomcat.uri-encoding=UTF-8
#post提交数据最大大小,设置为0不限制
server.tomcat.max-http-post-size=0
3.有可能中文以Unicode编码方式显示
修改方法 (修改全局)
window---->preferences---->general----->content types----->Text------>java properties file---->UTF-8
修改单个文件 右键文件----------->propertis