摘要: 1.输入 ps -ef | grep tomcat 查看要重启的服务 2.输入 sudo -i 进入管理员模式 3.输入 kill -9 29398(重启服务的id) 杀掉进程 4.进入tomcat 下的bin目录 5.重启服务 阅读全文
posted @ 2022-11-15 10:49 卟萌 阅读(100) 评论(0) 推荐(0) 编辑
摘要: /** * 判断字符串中某个字符存在的个数 * @param str1 完整字符串 * @param str2 要统计匹配个数的字符 * @return */ public static int countStr(String str1, String str2) { int count=0; if 阅读全文
posted @ 2022-03-01 11:46 卟萌 阅读(339) 评论(0) 推荐(0) 编辑
摘要: arrayList add方法只是引用对象地址 List<Map<Stirng,Object>> list = new ArrayList(); Map<String, Object> map = new HashMap<>(); map.put("counter_id", "1"); map.pu 阅读全文
posted @ 2021-09-07 16:24 卟萌 阅读(46) 评论(0) 推荐(0) 编辑
摘要: 自己看 &lt; < 小于 &gt; > 大于 &amp; & 与 &apos; ' 单引号 &quot; " 双引号 写法 select * from user where id &it; 2 阅读全文
posted @ 2021-05-25 10:17 卟萌 阅读(53) 评论(0) 推荐(0) 编辑
摘要: 1、输入cmd,打开cmd命令框。比如说要关闭端口号为8082的程序 2、输入netstat -nao|findstr 8082 查看8082端口,找到了PID为19912的进程ID在监听这个端口。 3、看看19912是什么进程 查看19912进程,这里残留了一个java.exe进程 4、打开任务管 阅读全文
posted @ 2021-01-26 10:16 卟萌 阅读(1503) 评论(0) 推荐(0) 编辑
摘要: List<WarehouseStockItemBean> warehouseStockItemBeanLists = new ArrayList<>(); List<WarehouseStockItemBean> warehouseStockItemBeans = new ArrayList<>() 阅读全文
posted @ 2021-01-19 11:24 卟萌 阅读(1495) 评论(0) 推荐(1) 编辑
摘要: 一般的写法: //不使用stream拷贝list List<WarehouseStockItemBean> dtoList = new ArrayList<>(); for (WarehouseStockItemBean warehouseStockItem : warehouseStockItem 阅读全文
posted @ 2021-01-19 11:16 卟萌 阅读(1970) 评论(0) 推荐(0) 编辑
摘要: let Float_Dolphin = function () { /* * 判断obj是否为一个整数 */ function isInteger(obj) { return Math.floor(obj) obj } /* * 将一个浮点数转成整数,返回整数和倍数。如 3.14 >> 314,倍数 阅读全文
posted @ 2020-11-10 10:12 卟萌 阅读(726) 评论(0) 推荐(1) 编辑
摘要: let arr = [ {commodity_id:1,quantity:10,amount:20}, {commodity_id:1,quantity:5,amount:10}, {commodity_id:2,quantity:10,amount:50}] mergeMap(arr) { // 阅读全文
posted @ 2020-10-27 15:03 卟萌 阅读(644) 评论(0) 推荐(0) 编辑
摘要: //oldMap要改变的对象,newKey改变的key let newMap = this.replaceMapKey({quantity:'20',amout:'200'},newQuantity,newAmount) replaceMapKey(oldMap, newKey, newKey1) 阅读全文
posted @ 2020-10-23 17:12 卟萌 阅读(674) 评论(0) 推荐(0) 编辑