第 1 种:在 Java 代码中添加 sql 通配符。 string wildcardname = “%smi%”; list<name> names = mapper.selectlike(wildcardname); <select id=”selectlike”> select * from ...
分类:
其他好文 时间:
2020-07-20 10:42:38
阅读次数:
180
python-nmap使用及案例 nmap概念及功能 概念 NMap,也就是Network Mapper,最早是Linux下的网络扫描和嗅探工具包。 nmap是一个网络连接端扫描软件,用来扫描网上电脑开放的网络连接端。确定哪些服务运行在哪些连接端,并且推断计算机运行哪个操作系统(这是亦称 finge ...
分类:
编程语言 时间:
2020-07-19 23:56:40
阅读次数:
104
前期准备 下载并安装Git linux sudo apt-get install git win 下载应用程序,安装即可 设置用户名和email地址 git config --global user.name "Your Name" git config --global user.email "e ...
分类:
其他好文 时间:
2020-07-19 23:15:54
阅读次数:
69
一、云硬盘备份 1、环境准备 创建了一个盘 挂在给虚拟机 格式化硬盘 挂载 创建一些测试文件 在存储节点上找到这个磁盘文件 lvs dd if=/dev/mapper/cinder--ssd-volume--45d1e99f--5845--49c0--b7d7--709267d38d82 of=/o ...
分类:
其他好文 时间:
2020-07-19 18:10:37
阅读次数:
93
需要序列化的类需实现接口: public class ResponseModel implements Serializable { 序列化和反序列化代码例子: import com.fasterxml.jackson.annotation.JsonInclude; import com.faste ...
分类:
Web程序 时间:
2020-07-19 16:07:17
阅读次数:
101
迷宫问题:定义一个矩阵:0 1 0 0 00 1 0 1 00 0 0 0 00 1 1 1 00 0 0 1 0它表示一个迷宫,其中的1表示墙壁,0表示可以走的路,只能横着走或竖着走,不能斜着走,要求编程序找出从左上角到右下角的最短路线。【输入】一个5 × 5的二维数组,表示一个迷宫。数据保证有唯 ...
分类:
其他好文 时间:
2020-07-19 15:54:32
阅读次数:
59
1、Docker 在安装docker前,先安装docker的包 sudo yum install -y yum-utils \ device-mapper-persistent-data \ lvm2 配置docker的仓库,从docker官方仓库下载会太慢,我们就将仓库配置到阿里云(类似于mave ...
分类:
编程语言 时间:
2020-07-19 11:22:28
阅读次数:
78
参考 优秀程序员的代码都是如何分层的? 1、背景 2、如何进行分层 3、分层领域模型的转换 4、总结 领域模型转换那些事儿 1、背景 说起应用分层,大部分人都会认为这个不是很简单嘛 就controller,service, mapper三层。看起来简单,很多人其实并没有把他们职责划分开,在很多代码中 ...
分类:
其他好文 时间:
2020-07-18 22:45:12
阅读次数:
90
1、在application.yml配置cache-enabled: true mybatis: config-location: classpath:/mybatis-config.xml, classpath:mybatis/mybatis-config.xml mapper-locations ...
分类:
编程语言 时间:
2020-07-18 19:44:38
阅读次数:
147
本文中案例都会在上传到git上,请放心浏览 git地址:https://github.com/muxiaonong/Spring-Cloud/tree/master/order-lock 本文会使用到 三台 redis 独立服务器,可以自行提前搭建好 前言 在Java中,我们对于锁会比较熟悉,常用的 ...
分类:
其他好文 时间:
2020-07-18 15:49:42
阅读次数:
60