groovy编码问题

问题:在eclipse工程中程序能正常显示中文,打成jar包部署到服务器上之后中文显示乱码


解决:

确认windows->Preferences->general->Workspace->Text file encoding设置为UTF-8

确认windows->Preferences->general->Content Types->右侧Context Types树,点开Text,选择Java Source File


参考:https://www.cnblogs.com/xianlei/p/7987957.html


猜你喜欢

转载自blog.csdn.net/u010898743/article/details/79978357
今日推荐