Browse Source

update 优化 单元测试乱码问题 指定运行编码

疯狂的狮子Li 2 years ago
parent
commit
ec076c1e0d
1 changed files with 1 additions and 0 deletions
  1. 1 0
      pom.xml

+ 1 - 0
pom.xml

@@ -371,6 +371,7 @@
                 <artifactId>maven-surefire-plugin</artifactId>
                 <version>2.22.2</version>
                 <configuration>
+                    <argLine>-Dfile.encoding=UTF-8</argLine>
                     <!-- 根据打包环境执行对应的@Tag测试方法 -->
                     <groups>${profiles.active}</groups>
                     <!-- 排除标签 -->