摘要: log4j.properties配置文件中:​(注意标红的行,只有定义在com.sinosoft下执行logger.info,才能够执行打印日志)log4j.rootLogger=ERROR, stdout,df# MyBatis logging configuration...log4j.logg... 阅读全文
posted @ 2015-04-05 18:55 xu_shuyi 阅读(1340) 评论(0) 推荐(0)
摘要: package util;import java.net.InetAddress;import java.net.UnknownHostException;import java.security.MessageDigest;import java.security.NoSuchAlgorithmE... 阅读全文
posted @ 2015-04-05 18:53 xu_shuyi 阅读(860) 评论(0) 推荐(0)
摘要: Author:xushuyiimport org.json.JSONArray;import org.json.JSONObject; public class TestJson { public static void main(String[] args) { String jsonSt... 阅读全文
posted @ 2015-04-05 18:49 xu_shuyi 阅读(701) 评论(0) 推荐(0)
摘要: JAVA中使用JSON进行数据传递:http://www.cnblogs.com/undead/archive/2012/07/18/2594900.html 返回前台数据:private String errorMsg(){ JSONObject jsonObject = null; try ... 阅读全文
posted @ 2015-04-05 18:46 xu_shuyi 阅读(175) 评论(0) 推荐(0)
摘要: 标签的基本使用方法: http://wangyi878750.blog.sohu.com/87276188.html 1.帝国cms如何使用[includefile]引用文件标签: http://www.huishikong.com/bbs/thread-3687-1-1.html 2.CMS 简介: http://baike.haosou.com/doc/1031174.html... 阅读全文
posted @ 2015-04-05 18:40 xu_shuyi 阅读(219) 评论(0) 推荐(0)
摘要: //几种获取配置文件路径的方法 InputStream inputStream1 = TestFile.class.getClassLoader().getResourceAsStream("db.properties"); // TestFile是类名 InputStream in... 阅读全文
posted @ 2015-04-05 18:32 xu_shuyi 阅读(206) 评论(0) 推荐(0)
摘要: Java 浮点数精确计算 BigDecimal的用法 java.math.BigDecimal的用法?Java 浮点数 精确计算 如果我们编译运行下面这个程序会看到什么?public class Test{ public static void main(String args[]){ ... 阅读全文
posted @ 2015-04-05 18:31 xu_shuyi 阅读(231) 评论(0) 推荐(0)
摘要: public class HelloOOP02 { String[] str = {"104489876.80","-1883934.43","-100000000.00"}; double debit = 0.00d; @Test public void test(){ ... 阅读全文
posted @ 2015-04-05 18:28 xu_shuyi 阅读(572) 评论(0) 推荐(0)
摘要: public static Double round(Double doubleValue, int scale){ Double flag=null; String text=doubleValue.toString(); BigDecimal bd=new BigDecimal(text... 阅读全文
posted @ 2015-04-05 18:24 xu_shuyi 阅读(142) 评论(0) 推荐(0)
摘要: 1.解决IE浏览器乱码问题: String payBillNo = new String(request.getParameter("payBillNo").getBytes("ISO-8859-1"),"GBK");2.解决非IE浏览器乱码问题: String payBillNo = new ... 阅读全文
posted @ 2015-04-05 18:23 xu_shuyi 阅读(904) 评论(0) 推荐(0)