先吐槽一下,花了我3個小時,心累
本地執行正常,釋出時maven外掛裡要加utf-8編碼
https://blog.csdn.net/testcs_dn/article/details/45583791
<plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.0</version> <configuration> <encoding>utf-8</encoding> <source>1.8</source> <target>1.8</target> </configuration> </plugin> </plugins>