解决weblogic 部署环境后出现的乱码问题

时间:2022-01-12 14:03:41

1、在startWebloci.cmd 中

set CLASSPATH=%SAVE_CLASSPATH% 下增加一行

JAVA_OPTIONS="${JAVA_OPTIONS} -Dfile.encoding=utf-8"

解决weblogic 部署环境后出现的乱码问题

2、在setDomainEnv.cmd 中增加 一行 -Dserver.config=.\server-config.properties -Dfile.encoding=utf-8, 红色为增加的

 if "%ADMIN_URL%"=="" (
@REM The then part of this block is telling us we are either starting an admin server OR we are non-clustered
set CLUSTER_PROPERTIES=-Dweblogic.management.discover=true -Dserver.config=.\server-config.properties -Dfile.encoding=utf-8
) else (
set CLUSTER_PROPERTIES=-Dweblogic.management.discover=false -Dweblogic.management.server=%ADMIN_URL%
)