(1)在maven的tomcat插件中配置web
<configuration>
<path>${webapp.contextPath.test}</path>
<port>${webapp.port.test}</port>
<urlEncoding>UTF-
8
</urlEncoding>
<server>${tomcat.server.test}</server>
<url>${tomcat.manager.test}</url>
<uriEncoding>UTF-
8
</uriEncoding>
</configuration>
|
(2)若是用的是外置的tomcat,那麼就能夠這樣配置,能夠本身選擇tomcat
<Connector port=
"80"
protocol=
"HTTP/1.1"
connectionTimeout=
"20000"
redirectPort=
"8443"
URIEncoding=
"utf-8"
/>
|