2023-02-22发表2023-08-24更新后端开发 / MyBatis4 分钟读完 (大约553个字)MyBatis机制介绍与原理该博客介绍了插件的概念及其在 MyBatis 中的应用。MyBatis 插件通过拦截和增强核心组件,如 Executor、StatementHandler、ParameterHandler 和 ResultSetHandler,实现了灵活且可扩展的持久层操作方式。插件的机制利用动态代理技术,使得开发人员能够根据需求选择适合的数据库操作方式,并轻松扩展 MyBatis 的功能。阅读更多
2022-11-26发表2022-11-26更新前端开发3 分钟读完 (大约378个字)从零开始写一个vuepress插件初始化插件项目在任意目录新建一个插件目录我这里在pkgvuepresspluginsimpleencryptmkdirpkgvuepresspluginsimpleencrypt进入该目录初始化项目yarninit输入插件名vuepresspluginsimpleencrypt入口文件名indexjs其他选项对应填写即可。初始化之后packagejson的文件内容_{_{}_{}_[]_{}}编写入口文件indexjsmoduleexports=(optionsctx)={return{name_vuep阅读更多
2022-09-25发表2022-09-25更新前端开发4 分钟读完 (大约659个字)Chrome插件开发background_js支持跨域请求与返回async和await的处理backgroundjs的配置chromeruntimeonmessageaddlistener((requestsendersendresponse)={switch(requesttype){casefetchchromexmlrpc_(async()={constresponse=awaitfetch(requestapiurlrequestfetchcorsparams)_constrestext=awaitresponsetext()consolelog(restext)sendresponse阅读更多
2022-08-30发表2022-08-30更新经验分享1 分钟读完 (大约127个字)plantuml配合graphvizidea安装插件直接idea搜索plantuml即可mac安装brewinstallgraphvizps_收藏一个写的很好的homebrew脚本binzshcplantuml编解码https_githubcommarkushedvallplantumlencoder编码varplantumlencoder=require(plantumlencoder)varencoded=plantumlencoderencode(ab_hello)consolelog(encoded)srjgjldmibbmicto阅读更多