解决tomcat控制台乱码问题
</h1>
<div class="clear"></div>
<div class="postBody">
问题原因:编码不一致,tomcat启动后默认编码UTF-8,而windows的默认编码是GBK。所以只需配置启动tomcat后为GBK编码即可。
做法:找到路径 $xxx$apache-tomcat-xxxconf 下的logging.properties文件,添加(或修改)语句为:java.util.logging.ConsoleHandler.encoding = GBK
然后重启tomcat就ok了。
</h1>
<div class="clear"></div>
<div class="postBody">
问题原因:编码不一致,tomcat启动后默认编码UTF-8,而windows的默认编码是GBK。所以只需配置启动tomcat后为GBK编码即可。
做法:找到路径 $xxx$apache-tomcat-xxxconf 下的logging.properties文件,添加(或修改)语句为:java.util.logging.ConsoleHandler.encoding = GBK
然后重启tomcat就ok了。
struts2官方 中文教程 系列十四:主题Theme
struts2官方 中文教程 系列十三:利用通配符选择方法
struts2官方 中文教程 系列十二:控制标签
struts2官方 中文教程 系列十一:使用XML进行表单验证
struts2官方 中文教程 系列十:Form标签
struts2官方 中文教程 系列九:Debugging Struts
struts2官方 中文教程 系列八:异常处理
struts2官方 中文教程 系列七:消息资源文件
struts2官方 中文教程 系列六:表单验证
Copyright © 2011-2022 走看看