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