摘要: Java8新特性1.lambda表达式2.Optional类3.流式数据处理 Consumer类 设计模式状态模式 方法原子化,一个方法只做一件事,尽量细分 数据转换可以写成一个方法封装,不用每次都写数据转换的流程 不要直接定义线程,用线程池 private static ExecutorServi 阅读全文
posted @ 2020-05-11 16:12 王子豪 阅读(226) 评论(1) 推荐(0) 编辑
摘要: 解决rejected from java.util.concurrent.ThreadPoolExecutor@29e84858 解决方法: ThreadPoolExecutor executor = new ThreadPoolExecutor(10, 50, 30*1000,TimeUnit.M 阅读全文
posted @ 2020-03-26 09:51 王子豪 阅读(10316) 评论(0) 推荐(0) 编辑
摘要: get set 方法没有添加,无法转成json 阅读全文
posted @ 2020-03-21 17:28 王子豪 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 1.可能出现了无限的过滤器重定向 2.放行地址写错了,/admin/login对,admin/login错,//admin对,/admin错 放行地址写错会没有准确放行,一直重定向判断是否登录了 阅读全文
posted @ 2019-12-08 15:02 王子豪 阅读(4706) 评论(0) 推荐(0) 编辑
摘要: 链接1:https://blog.csdn.net/longzhongxiaoniao/article/details/85727725 链接2:https://www.cnblogs.com/panxuejun/p/7715917.html 链接3:https://blog.csdn.net/xi 阅读全文
posted @ 2019-11-15 21:40 王子豪 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 原文链接https://blog.csdn.net/xiaomajia029/article/details/88320233 问题描述: 原因分析:在项目配置的时候,默认 npm 包导出的是运行时构建,即 runtime 版本,不支持编译 template 模板。 vue 在初始化项目配置的时候, 阅读全文
posted @ 2019-11-14 00:54 王子豪 阅读(927) 评论(0) 推荐(0) 编辑
摘要: 传送门:https://www.cnblogs.com/eatkid/p/8064763.html intellij idea tomcat 启动不生成war包 intellij idea tomcat 启动不生成war包 想把项目打包成war包做测试,但是按照之前的方法居然没有成功导出war包,犯 阅读全文
posted @ 2019-10-11 22:05 王子豪 阅读(2834) 评论(0) 推荐(0) 编辑
摘要: 意思是spring.jar这个包在发布的时候没有被放入war。如果是maven管理的项目,可以看看这个项目的部署参数里有没有加入所有maven的包。 右键项目->Properties->Deployment Assembly,看看有没有Maven Dependencies 没有的话,点Add,选Ja 阅读全文
posted @ 2019-10-04 14:00 王子豪 阅读(342) 评论(0) 推荐(0) 编辑
摘要: 错误信息如下: 警告: Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: 阅读全文
posted @ 2019-09-29 16:13 王子豪 阅读(9241) 评论(0) 推荐(0) 编辑
摘要: 原文链接:https://blog.csdn.net/qq_20328181/article/details/81391956 阅读全文
posted @ 2019-09-11 11:07 王子豪 阅读(106) 评论(0) 推荐(0) 编辑