STS 控制台 中文乱码

用uriEncoding标签设置中文字符集就行了

<plugin>
    <groupId>org.apache.tomcat.maven</groupId>
    <artifactId>tomcat7-maven-plugin</artifactId>
    <version>2.2</version>
    <configuration>
     <!-- 设置中文字符集 -->
    <uriEncoding>utf-8</uriEncoding> 
     <port>8080</port>
     <path>/</path>
    </configuration>
</plugin>

.

猜你喜欢

转载自www.cnblogs.com/crazycode2/p/10262433.html