HTML中输出格式设定:
response.setContentType("text:html;charset=utf-8");
重定向:
response.sendRedirect("/index.html")
jetty 插件启动(比tomcat启动快几倍)
<plugin>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>9.4.11.v20180605</version>
<configuration>
<httpConnector>
<port>80</port>
</httpConnector>
<webAppConfig>
<contextPath>/</contextPath>
</webAppConfig>
</configuration>
</plugin>