background.js的配置 chrome.runtime.onMessage.addListener((request, sender, sendResponse) => { switch (request.type) { case 'fetchChromeXmlrpc': (async...
docker的WordPress启用https
docker 的 http 部署配置 集成 MySQL 的版本 version: '3.3' services: db: image: mysql:5.7.38 volumes: - ./data:/var/lib/mysql ports: - "3307:3306" restart: "no" e...
Spring-Data-JPA入门
前言 Spring Data JPA, part of the larger Spring Data family, makes it easy to easily implement JPA based repositories. This module deals with enhanced s...
Spring-Boot新项目启动总是提示:Process-finished-with-exit-code-0
可能原因 1.端口冲突检查端口号 2.缺少 web 启动依赖 <!-- web --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-...
MyBatis的一级缓存
在 MyBatis 中,一级缓存是默认开启的。 通过场景来理解: 场景一 1、在一个 SqlSession 中,对 User 表进行两次根据 ID 的查询,查看发出 sql 语句的情况。 /** * 根据ID查询用户 * * @param id * @return */ @Select("selec...
requirements_txt的使用与依赖管理
生成requirments.txt pip freeze > requirements.txt 或者 pip install pipreqs pipreqs --encoding utf-8 "./" 安装依赖 pip install -r requirements.txt 安装并升级 pip...
Pipenv vs Virtualenv vs Conda environment
目前,Python 创建虚拟环境主要有三种方式,在这篇文章中,我想谈谈如何使用它们。 为什么需要虚拟环境? 在使用 Python 语言时,通过 pip(pip3)来安装第三方包,但是由于 pip 的特性,系统中只能安装每个包的一个版本。但是在实际项目开发中,不同项目可能需要第三方包的不同版本,迫使我...
安装和升级pip与pip3
pip 官网:https://pypi.org/project/pip/ 你可以通过以下命令来判断是否已安装: pip --version # Python2.x 版本命令 pip3 --version # Python3.x 版本命令 https://pip.pypa.io/en/stable/i...
MyBatis缓存的概念
缓存回顾 缓存就是内存中的数据,常常来自对数据库查询结果的保存。 使用缓存可以避免频繁与数据库交互,进而提高响应速度。 MyBatis 对缓存的支持 MyBatis 也提供了对缓存的支持,分为 一级缓存 和 二级缓存。可以用下面的图来理解: 一级缓存是 SqlSession 级别的缓存。在操作数...
简单几行代码实现WordPress支持plantuml
由于目前 PHP 操作 DOM 生成 HTMl 还没找到好办法,因此,我只是在内容末尾添加并生成 plantuml。 代码实现 代码如下: // plantuml相关函数 //function appendHTML(DOMNode $parent, $source) { // $tmpDoc = n...
17