摘要: public static String sendPostHttps(String url,String param){ PrintWriter out = null; BufferedReader in = null; String result = ""; try { // 创建SSLConte 阅读全文
posted @ 2021-06-24 11:17 wlp贼丑 阅读(184) 评论(0) 推荐(0)
摘要: SELECT eden_product.product_number, ( 6371 * acos( cos(radians( 31.398876 )) * cos(radians( product_adress_y )) * cos(radians( product_adress_x ) - ra 阅读全文
posted @ 2021-06-24 11:00 wlp贼丑 阅读(399) 评论(0) 推荐(0)
摘要: 首先,缓存由于其高并发和高性能的特性,已经在项目中被广泛使用。在读取缓存方面,大家没啥疑问,都是按照下图的流程来进行业务操作。 但是在更新缓存方面,对于更新完数据库,是更新缓存呢,还是删除缓存。又或者是先删除缓存,再更新数据库,其实大家存在很大的争议。目前没有一篇全面的博客,对这几种方案进行解析。 阅读全文
posted @ 2021-05-27 17:31 wlp贼丑 阅读(60) 评论(0) 推荐(0)
摘要: @Controller@RequestMapping("/excel")public class ImportExcelController{ @Autowired(required=true) private ImportService importService; //导入excel @Requ 阅读全文
posted @ 2021-05-25 13:49 wlp贼丑 阅读(73) 评论(0) 推荐(0)
摘要: 一般执行就是,先add commit pull push 重点看第5条 情况是这样的,现在远程有一个仓库,分支就一个,是master。然后我本地的仓库是从远程的master上clone下来的。大家都是clone下来,再在自己本地改好,再commit然后pull然后push,大家都是这么做的。那么现在 阅读全文
posted @ 2021-05-25 11:19 wlp贼丑 阅读(116) 评论(0) 推荐(0)
摘要: 前言: Spring的事务,也就是数据库的事务操作,符合ACID标准,也具有标准的事务隔离级别。 但是Spring事务有自己的特点,也就是事务传播机制。 所谓事务传播机制,也就是在事务在多个方法的调用中是如何传递的,是重新创建事务还是使用父方法的事务?父方法的回滚对子方法的事务是否有影响?这些都是可 阅读全文
posted @ 2021-04-16 18:21 wlp贼丑 阅读(158) 评论(0) 推荐(0)
摘要: ServletRequestAttributes attributes = (ServletRequestAttributes) RequestContextHolder.getRequestAttributes();HttpServletRequest request = attributes.g 阅读全文
posted @ 2021-04-15 17:29 wlp贼丑 阅读(44) 评论(0) 推荐(0)
摘要: TransactionAspectSupport.currentTransactionStatus().setRollbackOnly(); 阅读全文
posted @ 2021-04-13 15:28 wlp贼丑 阅读(24) 评论(0) 推荐(0)
摘要: List<SmSku> smSku; smsku这个对象里面有 altlevel2属性 List<String> collect = smSku.stream().map(smSku1 -> smSku1.getAltLevel2()).distinct().collect(Collectors.t 阅读全文
posted @ 2021-04-13 11:40 wlp贼丑 阅读(534) 评论(0) 推荐(0)
摘要: // \s 代表字母 + 代表一个以上 // \w 代表数字 + 代表一个以上 // [0-9] 代表0到9 var reg = /^\w+$/; var str="1234"; alert(reg.test(str)); \s 空白<br /> \S 非空白 <br /> \d 数字<br /> 阅读全文
posted @ 2020-07-20 10:23 wlp贼丑 阅读(112) 评论(0) 推荐(0)