1、修改编码

全局编码设置:

File -> Other Settings -> Default Settings->file encoding

工程编码设置:

File -> Settings->file encoding

改成:UTF-8

2、maven的pom.xml的修改

<build>    
        <plugins>    
            <plugin>    
                <artifactId>maven-compiler-plugin</artifactId>    
                <configuration>    
                    <source>1.6</source>    
                    <target>1.6</target>    
                    <encoding>UTF-8</encoding>    
                </configuration>    
            </plugin>    
        </plugins>    
    </build>

 

相关文章:

  • 2021-09-03
  • 2021-09-01
  • 2021-09-18
  • 2022-12-23
  • 2021-10-07
  • 2021-08-13
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-07
  • 2022-12-23
  • 2021-06-11
相关资源
相似解决方案