
后台
SNK9527
这个作者很懒,什么都没留下…
展开
-
异常PKIX path building failed: ******** unable to find valid certification path to requested target
连接minio时遇到异常。完整异常:javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target大致的意思是缺少一个原创 2022-02-22 10:32:12 · 4521 阅读 · 0 评论 -
设计模式代码详解--命令模式
命令模式是一个高内聚的模式,其定义为:Encapsulate a request as an object,thereby letting you parameterize clients with different requests,queue or log requests,and support undoable operations.(将一个请求封装成一个对象,从而让你使用不同的请求把客户端参数化,对请 求排队或者记录请求日志,可以提供命令的撤销和恢复功能。)------摘至《设计模式之禅》简单原创 2021-06-29 16:24:33 · 129 阅读 · 0 评论 -
使用html2canvas.js截图并保存到后台
要求 在执行一定事件后对操作的网页进行截图保存。使用js工具:<script src="https://cdnbootcss.com/html2canvas/0.5.0-beta4/html2canvas.js"></script><script type="text/javascript" src="http://cdn.bootcss.com/html2canvas/0.5.0-beta4/html2canvas.js"></script>引入J原创 2021-06-22 17:06:38 · 336 阅读 · 0 评论 -
设计模式代码详解--责任链模式
责任链模式的定义(百度的):顾名思义,责任链模式(Chain of Responsibility Pattern)为请求创建了一个接收者对象的链。这种模式给予请求的类型,对请求的发送者和接收者进行解耦。这种类型的设计模式属于行为型模式。在这种模式中,通常每个接收者都包含对另一个接收者的引用。如果一个对象不能处理该请求,那么它会把相同的请求传给下一个接收者,依此类推。简单粗暴上代码,每行代码都有注释:/** * 责任链模式 模拟工厂 * 工厂有3个生产车间 */public abstract原创 2021-04-02 15:04:05 · 124 阅读 · 0 评论