在windows中启动jar包时报错:
java.nio.charset.MalformedInputException: Input length = 1
在idea中正常启动。
解决方法:java -Dfile.encoding=UTF-8 -jar app.jar --spring.profiles.active=local
请勿使用windows powershell,会报错!
在windows中启动jar包时报错:
java.nio.charset.MalformedInputException: Input length = 1
在idea中正常启动。
解决方法:java -Dfile.encoding=UTF-8 -jar app.jar --spring.profiles.active=local
请勿使用windows powershell,会报错!