随笔分类 - 开发笔记
记录日常开发中掌握的常用技术
摘要:@Component public class UserUtil { private static IHosInfoService hosInfoService; @Autowired private IHosInfoService hosInfoService1; @PostConstruct p
阅读全文
摘要:一.Java 容器都有哪些? Java 容器分为 Collection 和 Map 两大类,其下又有很多子类,如下所示: Collection List ArrayList LinkedList Vector Stack Set HashSet LinkedHashSet TreeSet Map H
阅读全文
摘要:前端get请求: function() { var href = "/platform_wechat/MedicalHome/update.do?id=" + id; //地址以及传递的参数 $.get(href, function(res) { //res为接口返回数据 if (res.succe
阅读全文
摘要:JSONObject json = new JSONObject(); //保存json格式的对象 json .put("key","value") String jsonStr = json.toString(); //把json格式的对象转换成json字符串用于保存或入参 JSONObject
阅读全文
摘要:以 [] 开头的json数组字符串: str = "[{ "姓名":"张三", "年龄":"28" }]" //其中str为字符串格式 JSONArray jsonArray = JSONArray.fromObject(str); //如果是以{}开头的字符串 str = "{ "姓名":"张三"
阅读全文
摘要://调用第三方系统接口 PrintWriter out = null; BufferedReader in = null; JSONObject jsonObject = null; CloseableHttpResponse response = null; String result = "";
阅读全文
摘要:1 package com.skynet.rimp.common.utils.string; 2 3 import java.io.UnsupportedEncodingException; 4 import java.security.InvalidKeyException; 5 import j
阅读全文
摘要:JAVA中:public class Test { public static void main(String args[]) { String Str = new String("hello"); System.out.print("返回值 :" ); System.out.println(St
阅读全文