MyBatis机制介绍与原理

该博客介绍了插件的概念及其在 MyBatis 中的应用。MyBatis 插件通过拦截和增强核心组件,如 Executor、StatementHandler、ParameterHandler 和 ResultSetHandler,实现了灵活且可扩展的持久层操作方式。插件的机制利用动态代理技术,使得开发人员能够根据需求选择适合的数据库操作方式,并轻松扩展 MyBatis 的功能。
阅读更多

从零开始写一个vuepress插件

初始化插件项目在任意目录新建一个插件目录我这里在pkgvuepresspluginsimpleencryptmkdirpkgvuepresspluginsimpleencrypt进入该目录初始化项目yarninit输入插件名vuepresspluginsimpleencrypt入口文件名indexjs其他选项对应填写即可。初始化之后packagejson的文件内容_{_{}_{}_[]_{}}编写入口文件indexjsmoduleexports=(optionsctx)={return{name_vuep
阅读更多

plantuml配合graphviz

idea安装插件直接idea搜索plantuml即可mac安装brewinstallgraphvizps_收藏一个写的很好的homebrew脚本binzshcplantuml编解码https_githubcommarkushedvallplantumlencoder编码varplantumlencoder=require(plantumlencoder)varencoded=plantumlencoderencode(ab_hello)consolelog(encoded)srjgjldmibbmicto
阅读更多