在tomcat----conf-----server.xml-------<Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" />将8080改了就行了