摘要: curl -k "https://aa/bb"; 阅读全文
posted @ 2021-12-06 10:41 小海葵 阅读(78) 评论(0) 推荐(0) 编辑
摘要: 在网络隔离的情况下,写测试代码,用javac、java命令执行相应的类,类需要外部依赖jar包 写出javac编译命令: 在cmd下,输入命令: javac -encoding UTF-8 -classpath .;C:\Users\wgzuo\Desktop\testhttp\lib\httpcl 阅读全文
posted @ 2021-12-06 10:31 小海葵 阅读(1151) 评论(0) 推荐(0) 编辑
摘要: @ControllerAdvice注解是Spring3.2中新增的注解,学名是Controller增强器,作用是给Controller控制器添加统一的操作或处理。 对于@ControllerAdvice,我们比较熟知的用法是结合@ExceptionHandler用于全局异常的处理,其它用法目前还没有 阅读全文
posted @ 2021-09-09 18:05 小海葵 阅读(385) 评论(0) 推荐(0) 编辑
摘要: select sys_guid() uuid from dual java后台直接获取打印出来是乱码,利用数据库函数转换下(RAW是种二进制数据) select RAWTOHEX(sys_guid()) uuid from dual 这样就正常了 阅读全文
posted @ 2021-08-10 16:26 小海葵 阅读(310) 评论(0) 推荐(0) 编辑
摘要: 数组拼接字符串逗号隔开不用遍历的方式 数组 join()函数的参数是可选的,如果没有包含参数来指定加入/分隔符,默认情况下会使用逗号。例如, var myArray = ['I', 'love', 'chocolate', 'frogs']; var madeAString = myArray.jo 阅读全文
posted @ 2021-08-04 14:32 小海葵 阅读(1453) 评论(0) 推荐(0) 编辑
摘要: 今天遇到这么一个问题,我写个文章mark下!! 比如有如下Map类型的数据: { "name":"hello", "poiCodes":[123456,789] } 在Freemarker模板中这么获取的话: "poiCodes": <#if inputData.poiCodes?? && (inp 阅读全文
posted @ 2021-08-04 14:19 小海葵 阅读(1017) 评论(0) 推荐(0) 编辑
摘要: var trs=$("#id tr[class='className']"); --trs.length判断长度 阅读全文
posted @ 2021-08-04 10:31 小海葵 阅读(106) 评论(0) 推荐(0) 编辑
摘要: private String getIpAddress(HttpServletRequest request){ String ip=request.getHeader("x-forwarded-for"); if((ip==null)||(ip.length()==0)||("unknown".e 阅读全文
posted @ 2021-06-10 18:06 小海葵 阅读(110) 评论(0) 推荐(0) 编辑
摘要: chmod -R 777 xxxx 阅读全文
posted @ 2021-06-07 14:33 小海葵 阅读(70) 评论(0) 推荐(0) 编辑
摘要: tar czvf xxxx.tar.gz xxxx 阅读全文
posted @ 2021-06-07 14:30 小海葵 阅读(15) 评论(0) 推荐(0) 编辑