JoyLau / joylau-springboot-daemon-windows

将SpringBoot应用制作为Windows Services服务 | make spring boot module to windows services
http://image.joylau.cn/blog/joylau-springboot-daemon-service-video.mp4
MIT License
68 stars 38 forks source link

[乱码]xml中 arguments设置问题 #2

Closed yzx5507 closed 5 years ago

yzx5507 commented 5 years ago

你好,我在使用时,遇到了一个小问题,就是package出的jar包,执行时需要类似下面这样子:

java -Dfile.encoding=utf8 -jar xx.jar

但是目前我查看打包后的xml中,arguments为-jar xx.jar 请问,我需要如何配置?或者采用您更新后的插件?

JoyLau commented 5 years ago

你好, 配置 vmOptions 参数可实现你的要求

yzx5507 commented 5 years ago

已解决,尴尬,没注意到文档最下面的内容

<configuration>
           <vmOptions>-Dfile.encoding=utf8</vmOptions>
</configuration>

这样就可以了

yzx5507 commented 5 years ago

感谢大佬的付出