Encoding [JBoss AS7]:在何处设置环境属性
我需要在JBoss7环境中将jvm系统属性Encoding [JBoss AS7]:在何处设置环境属性,encoding,jboss,jvm,jboss7.x,system-properties,Encoding,Jboss,Jvm,Jboss7.x,System Properties,我需要在JBoss7环境中将jvm系统属性file.encoding设置为utf-8 我必须在哪里进行更改standalone.xml 所有实例配置文件中都有一个部分,standalone.xml,名为system properties 您可以这样定义属性: <system-properties> <property name="file.encoding" value="utf-8"/> </system-properties> 如果缺少该节,
file.encoding
设置为utf-8
我必须在哪里进行更改
standalone.xml
所有实例配置文件中都有一个部分,standalone.xml
,名为system properties
您可以这样定义属性:
<system-properties>
<property name="file.encoding" value="utf-8"/>
</system-properties>
如果缺少该节,只需在
节之后立即添加它。您也可以从JVM选项中进行设置
-Dfile.encoding=UTF-8 -Dfile.io.encoding=UTF-8 -DjavaEncoding=UTF-8