10 2017 档案

摘要:在使用一个加密解密工具类的时候,在本地Main方法中运行正常,不会出现中文乱码,将其部署到Weblogic之后,控制台,Servlet中中出现中文乱码。 在Main方法运行时获取本地编码方式为UTF8,在Weblogic中运行时获取的是GBK。 经查询资料得知,如果不指定编码比如getBytes等, 阅读全文
posted @ 2017-10-28 08:37 yshy 阅读(3765) 评论(0) 推荐(0) 编辑
摘要:增加 transient 修饰进行解决,例如: private transient final DecimalFormat df = new DecimalFormat("#0.00"); 阅读全文
posted @ 2017-10-19 13:14 yshy 阅读(9936) 评论(0) 推荐(0) 编辑
摘要:public static void main(String[] args) { String xmlStr = ""+ "" + " " + " 1" + " 本月数" + ... 阅读全文
posted @ 2017-10-19 09:26 yshy 阅读(514) 评论(0) 推荐(0) 编辑
摘要:加载方式: 阅读全文
posted @ 2017-10-14 09:33 yshy 阅读(4713) 评论(0) 推荐(0) 编辑
摘要:private final DecimalFormat df = new DecimalFormat("#0.00"); public void test(){ String filePath = "G:\\tmp\\qhjt_yd.xls"; String destPath = "G:\\tmp\ 阅读全文
posted @ 2017-10-10 21:22 yshy 阅读(2290) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示