摘要: @Pointcut("execution(* com.jbs.oms.aggreg.web.controller.*.*.*(..))")private void excudeController() {} @Before("excudeController()")public void befor 阅读全文
posted @ 2020-01-03 21:50 骑驴晒太阳 阅读(1460) 评论(0) 推荐(0)
摘要: Stream 流式处理4Supplier 无参 有返回值 Function 有参 有返回值Consumer 有参 无返回值Predict 有参 有返回值(boolean) Optional 用于判断对象是否为空,并做其他操作 Stream:懒加载 先校验 再执行,如果校验发现没有终结函数则不执行(若 阅读全文
posted @ 2020-01-02 22:45 骑驴晒太阳 阅读(218) 评论(0) 推荐(0)
摘要: 分类:泛型类、泛型接口、泛型方法 注意:1.泛型中T不能为简单类型 2.不能对确切的泛型类型使用instanceof操作 》if(ex_num instanceof Generic<Number>){ } //编译报错 泛型接口: public interface Generator<T>{ pub 阅读全文
posted @ 2020-01-02 22:28 骑驴晒太阳 阅读(129) 评论(0) 推荐(0)
摘要: 第一次记得配置公钥: cd ~ ssh-keygen -t rsa -C "1419170877@qq.com" 将在usr目录下生产一个.ssh文件夹和三个文件 将id_rsa.pub文件内容粘贴至远程服务器端 # 1.查看git配置信息$ git config --list # 2.查看git用 阅读全文
posted @ 2020-01-02 17:46 骑驴晒太阳 阅读(64) 评论(0) 推荐(0)
摘要: web项目request对象获取参数 get请求: request.getParameter(); request.getParameterMap(); request.getParameterNames(); request.getParameterValues(); post请求: Servle 阅读全文
posted @ 2019-12-31 15:50 骑驴晒太阳 阅读(599) 评论(0) 推荐(0)
摘要: 注解与反射: //获取当前对象上所有的注解Annotation[] annotations = obj.getClass().getAnnotations();//获取当前对象上指定注解RestController speciAnno = obj.getClass().getAnnotation(R 阅读全文
posted @ 2019-12-31 11:23 骑驴晒太阳 阅读(267) 评论(0) 推荐(0)
摘要: List转Array List<String> bb = new ArrayList<>(); Array[] dd = bb.toArray(new String[0]); Array复制为List<String> String[] aa = new String[]{"1","2","3"}; 阅读全文
posted @ 2019-12-31 11:22 骑驴晒太阳 阅读(801) 评论(0) 推荐(0)
摘要: 问题:idea can not access 。。。 处理步骤:File -> Settings -> Editor -> Inspections -> 列表选择Java -> Declaration redundancy -> Declaration access can be weaker后面的 阅读全文
posted @ 2019-12-26 10:54 骑驴晒太阳 阅读(362) 评论(0) 推荐(0)