随笔分类 -  开发笔记

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