随笔分类 -  Java

摘要:<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance 阅读全文
posted @ 2020-12-11 15:10 灌汤非 阅读(377) 评论(0) 推荐(0)
摘要:当前端发ajax请求给后端,数据如下 data:{ ids:[7591,876], age:1, rows:10000, jsonpCallback:"volunterListData3" } 观察浏览器开发者工具network中实际参数是: ids变成了ids[],事与愿违,需要在ajax请求中添 阅读全文
posted @ 2020-09-30 09:29 灌汤非 阅读(3352) 评论(0) 推荐(0)
摘要:int[] arr=new int[]{5,1,3,4,1}; //若统计的是int数组,先转化为List List<Integer> list= Arrays.stream(arr).boxed().collect(Collectors.toList()); //groupingBy分组 Map< 阅读全文
posted @ 2020-09-15 09:15 灌汤非 阅读(21057) 评论(0) 推荐(0)
摘要:1.去除Springboot内嵌Tomcat依赖 1 <dependency> 2 <groupId>org.springframework.boot</groupId> 3 <artifactId>spring-boot-starter-web</artifactId> 4 <exclusions 阅读全文
posted @ 2020-03-09 00:26 灌汤非 阅读(437) 评论(0) 推荐(0)
摘要:1.SpringBoot AOP的Maven依赖: 1 <!--引入AOP依赖 --> 2 <dependency> 3 <groupId>org.springframework.boot</groupId> 4 <artifactId>spring-boot-starter-aop</artifa 阅读全文
posted @ 2020-01-20 15:15 灌汤非 阅读(206) 评论(0) 推荐(0)