Intellij IDEA run shell base on BashSupport plugin

在Intellij IDEA中,通过插件BaseSupport允许shell脚本时候,发现中文处理的并不是很好。

shell脚本内容:

#!/bin/sh

java -jar ./mybatis-generator-core_libs/mybatis_generator.jar  -configfile ./db/resources/userdata/account.xml  -overwrite

 (PS:本来是想通过mybatis插件直接在IDEA中操作的,但是死活找不到相应的mybatis generator右键菜单,知道的朋友麻烦告知一下。谢谢。)

生成的Bean文件:(其中的乱码是中文注释)

 

猜测可能是语言的问题,修改run configuration

1,打开configuration窗口



 

 

编辑 Environment variables,添加utf-8语言支持



 

Apply生效。

重新run一次。

结果如下:



 

猜你喜欢

转载自song020cn.iteye.com/blog/2002267
今日推荐