随笔分类 -  java 基础常识

摘要:1 public static Double twoPoint(double temp){ 2 String strNum = String.valueOf(temp); 3 String ss= ""; 4 int a = strNum.indexOf("."); 5 if(a>0){ 6 ... 阅读全文
posted @ 2017-06-23 11:49 joe立 阅读(1722) 评论(0) 推荐(0)
摘要:public static JSONObject getJsonFromUrl(String url){ CloseableHttpClient httpClient = HttpClients.createDefault(); HttpGet httpGet = new HttpGet(url); 阅读全文
posted @ 2016-05-06 10:12 joe立 阅读(227) 评论(0) 推荐(0)
摘要:Carlendar.getInstance().get(Calendar.HOUR_OF_DAY); 阅读全文
posted @ 2016-04-27 16:11 joe立 阅读(488) 评论(0) 推荐(0)
摘要://spring mvc文件中的配置 <!-- ThreadPoolExecutor --> <bean id="threadPoolTaskExecutor" class="com.magisal.pmr.commons.threadPool.SosThreadPoolTaskExecuror"> 阅读全文
posted @ 2016-04-22 09:38 joe立 阅读(439) 评论(0) 推荐(0)
摘要:public GetResource{ String path = GetResource.class.getClassLoader().getResource("xx/xx.txt").getPath(); } 扩展 一 相对路径的获得 说明:相对路径(即不写明时候到底相对谁)均可通过以下方式获得 阅读全文
posted @ 2016-04-22 09:31 joe立 阅读(57360) 评论(0) 推荐(0)
摘要:点的问题是用string.split("[.]") 解决。 竖线的问题用 string.split("\\|")解决。 星号的问题用 string.split("\\*")解决。 斜线的问题用 sring.split("\\\\")解决。 中括号的问题用 sring.split("\\[\\]")解 阅读全文
posted @ 2016-04-21 16:22 joe立 阅读(157) 评论(0) 推荐(0)
摘要:<div class="form-group"> <div class="row"> <label class="col-sm-2 control-label">配置权限</label> <div class="col-sm-10"> <c:forEach var="m" items="${mode 阅读全文
posted @ 2016-04-14 10:02 joe立 阅读(640) 评论(0) 推荐(0)
摘要:$("#id").attr("checked",true); //显示出现问题,第一次成功 $("#id").prop("checked",true); 阅读全文
posted @ 2016-04-13 09:43 joe立 阅读(155) 评论(0) 推荐(0)