OFBIZ解决中文乱码问题
程序员文章站
2022-06-17 13:34:49
...
在根目录的build.xml头添加{memory.encoding.param}部分,然后重启:
<property name="pos.memory.max.param" value="-Xmx512M"/> <property name="memory.maxpermsize.param" value="-XX:MaxPermSize=512m"/> <property name="memory.encoding.param" value="-Dfile.encoding=UTF-8"/>
<target name="start" description="Start OFBiz"> <java jar="ofbiz.jar" fork="true"> <jvmarg value="${memory.initial.param}"/> <jvmarg value="${memory.max.param}"/> <jvmarg value="${memory.maxpermsize.param}"/> <jvmarg value="${memory.encoding.param}"/> </java> </target>
<target name="start-debug" description="Start OFBiz in debugging mode"> <java jar="ofbiz.jar" fork="true"> <jvmarg value="${memory.initial.param}"/> <jvmarg value="${memory.max.param}"/> <jvmarg value="${memory.maxpermsize.param}"/> <jvmarg value="${memory.encoding.param}"/> <jvmarg value="-Xnoagent"/> <jvmarg value="-Djava.compiler=NONE"/> <jvmarg value="-Xdebug"/> <jvmarg value="-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8091"/> </java> </target>
OFBIZ调试端口:8091