首页 > 其他分享 >spring-boot:run 中文乱码

spring-boot:run 中文乱码

时间:2023-01-04 09:46:29浏览次数:33  
标签:run encoding spring boot 乱码 UTF

 <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
                <version>2.1.1.RELEASE</version>
                <configuration>
                    <fork>true</fork> <!-- 如果没有该配置,devtools不会生效 -->
                    <arguments>-Dfile.encoding=UTF-8</arguments> <!-- 可能是这个生效-->
                    <jvmArguments>-Dfile.encoding=UTF-8</jvmArguments>  <!-- 可能是这个生效 -->
                </configuration>
                <executions>
                    <execution>
                        <goals>
                            <goal>repackage</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

 

标签:run,encoding,spring,boot,乱码,UTF
From: https://www.cnblogs.com/huanglei2010/p/17023977.html

相关文章