上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 66 下一页
摘要: 在使用一个加密解密工具类的时候,在本地Main方法中运行正常,不会出现中文乱码,将其部署到Weblogic之后,控制台,Servlet中中出现中文乱码。 在Main方法运行时获取本地编码方式为UTF8,在Weblogic中运行时获取的是GBK。 经查询资料得知,如果不指定编码比如getBytes等, 阅读全文
posted @ 2017-10-28 08:37 yshy 阅读(3755) 评论(0) 推荐(0) 编辑
摘要: 增加 transient 修饰进行解决,例如: private transient final DecimalFormat df = new DecimalFormat("#0.00"); 阅读全文
posted @ 2017-10-19 13:14 yshy 阅读(9917) 评论(0) 推荐(0) 编辑
摘要: public static void main(String[] args) { String xmlStr = ""+ "" + " " + " 1" + " 本月数" + ... 阅读全文
posted @ 2017-10-19 09:26 yshy 阅读(511) 评论(0) 推荐(0) 编辑
摘要: 加载方式: 阅读全文
posted @ 2017-10-14 09:33 yshy 阅读(4709) 评论(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 阅读(2274) 评论(0) 推荐(0) 编辑
摘要: 默认情况下反向代理是不会转发请求中的Host头部,如果需要转发,则需要配置红色字体表示的选项参数。 阅读全文
posted @ 2017-09-16 14:35 yshy 阅读(8647) 评论(0) 推荐(0) 编辑
摘要: upstream块定义了一个上游服务器的集群,便于反向代理中的proxy_pass使用。 负载均衡策略: (1) 轮询(默认)。每个请求按照时间顺序逐一分配到不同的后端服务器,如果后端服务器Down掉,则系统自动剔除; (2) 指定权重。指定轮询概率,weight和访问比率成正比,用于后端服务器性能 阅读全文
posted @ 2017-09-16 14:32 yshy 阅读(236) 评论(0) 推荐(0) 编辑
摘要: public static String getIP() { StringBuilder sb = new StringBuilder(""); try { Enumeration allNetInterfaces = NetworkInterface.getNetworkInterfaces(); ... 阅读全文
posted @ 2017-09-16 14:31 yshy 阅读(320) 评论(0) 推荐(0) 编辑
摘要: 根据 http://www.cnblogs.com/yshyee/p/7448808.html 进行JMS操作时,发送跟监听放到不同的项目中进行时,出现以下异常信息: 解决方法: 修改 amqConnectionFactory配置如下: 阅读全文
posted @ 2017-09-11 18:02 yshy 阅读(1060) 评论(0) 推荐(0) 编辑
摘要: public static void main(String[] args) { SbVo sb = new SbVo(); sb.setBusiness("SB"); sb.setIphone("123456789"); String param = new Gson().toJson(sb); ... 阅读全文
posted @ 2017-09-01 10:24 yshy 阅读(1844) 评论(0) 推荐(0) 编辑
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 66 下一页