一、 MyEclip配置
1、JDK编码:window-->preferences-->java-->Installed JREs-->Edit JRE-->Default VM Arguments碧蓝航线捞船 -ding=UTF-8
2、文件编码:window-->preferences-->General-->Content Types-->Text UTF-8
3、工作区workspace编码:window-->preferences-->General-->workspace
4、对工程project进行编码设置 工程名 右键 properties Resource
5、tomca设置:独立的人格window -->preferences -->MyEclip -->Servers -->Tomcat -->Tomcat 5.X-->JDK-->Optional Java VM Arguments -ding=UTF-8
二、 MyEclip启动配置
作用:tomcat启动时日志不乱码,启动属性加 想象作文500字-vmargs -ding=UTF-8 -Xms128m -Xmx512m -XX:PermSize=512M -XX:MaxPermSize=512M -Dur.language=en
如何自动关机Ziji: 函的结尾"D:\Program Files\MyEclip 6.5\" -vmargs -Xms128m -Xmx512m -Dur.language=zh -XX ermSize=128M -XX:MaxPermSize=512M -ding=UTF-8
国籍的英文
三、 Tomcat配置
Linux环境下配置Web
1.路径:/tomcat5/bin/catalina.sh
2.在以下位置新增红色部分:
# ----- Execute The Requested Command -----------------------------------------
# Bugzilla 37848: only output this if we have a TTY
if [ $have_tty -eq 1 ]; then
echo "Using CATALINA_BASE: $CATALINA_BASE"
echo "Using CATALINA_HOME: $CATALINA_HOME"
echo "Using CATALINA_TMPDIR: $CATALINA_TMPDIR"
#-- opts过敏性鼻炎食疗
JAVA_OPTS="$JAVA_OPTS -ding=UTF-8"
echo "Using JAVA_OPTS: $JAVA_OPTS"
Windows环境下配置web
1.
rem ----- Execute The Requested Command ---------------------------------------
echo Using CATALINA_BASE: %CATALINA_BASE%
echo Using CATALINA_HOME: %CATALINA_HOME%
echo Using CATALINA_TMPDIR: %CATALINA_TMPDIR%
echo Using JAVA_HOME: %JAVA_HOME%
t JAVA_OPTS=%JAVA_OPTS% -ding=UTF-8
echo Using JAVA_OPTS: %JAVA_OPTS%
2. <Connector port="8082"大学礼记对应端口
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="fal" redirectPort="8443" acceptCount="100"
debug="0" connectionTimeout="20000"
disableUploadTimeout="true" URIEncoding="UTF-8"/>