oracle 中sql like下划线 _ 查询 1select t.*, t.rowid from tb_user t where t.name like '%\_' escape '\'; 这样就能查出tb_user表中所有name以 _ 结尾的记录了 2017-06-26 db #oracle
kafka快速上手 下载、安装官网下载 然后解压 12> tar -xzf kafka_2.11-0.10.2.0.tgz> cd kafka_2.11-0.10.2.0 linux用户使用bin/目录下的命令,Windows用户可以使用bin/windows/下的命令 使用启动服务kafka依赖于ZooKeeper,如果没有安装zookeeper,可以用kafka包里面现成的: 123> bin 2017-06-22 kafka #kafka
Memcached常用命令及使用说明 add格添加key。式:add keyName(键名) 0 30(过期时间单位为秒)3 (要添加value的长度)123(value); 12add name 0 30 3123 set替换或者添加key。格式:add keyName(键名) 0 30(过期时间单位为秒)3 (要添加value的长度)123(value); 1add name 0 30 3 getget 命令用于检索与之前添 2017-03-10 memcache #memcache
Spring Boot中使用Swagger2构建RESTful API文档 随着时间推移,不断修改接口实现的时候都必须同步修改接口文档,而文档与代码又处于两个不同的媒介,除非有严格的管理机制,不然很容易导致不一致现象 添加Swagger2依赖在pom.xml中添加swagger2依赖 12345678910<dependency> <groupId>io.springfox</groupId> <artifactI 2017-02-23 spring #springboot #swagger
SpringBoot中使用AOP 监控sql耗时 添加aop依赖 1234<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-aop</artifactId></dependency> 写切面类 123456789101112131415161718 2017-02-20 spring #spring #aop
使用apache-jmeter进行压力测试 The Apache JMeter™ application is open source software, a 100% pure Java application designed to load test functional behavior and measure performance. It was originally designed for testing Web Appl 2017-02-18 test #jmeter
git免密码 pull push 在home目录下面创建.git-credentials文件 1vi .git-credentials 编辑内容 1http://username:password@gitlab.com/name/project.git 设置记住密码(默认15分钟): git config --global credential.helper cache 如果想自己设置时间,可以这样做: git confi 2016-11-01 git #git
maven发布SNAPSHOT版本到私服仓库 maven发布SNAPSHOT版本到私服仓库 1234567891011121314151617181920<servers> <server> <id>nexus-releases</id> <username>admin</username> <pass 2016-08-31 maven #maven
idea快捷键 查找Ctrl+N:查找类Ctrl+Shift+N:查找文件Ctrl+Shift+Alt+N:查找类中的方法或变量按两次Shitf:全局搜索 F4:查找变量来源Ctrl+B:找变量的来源,快速打开光标处的类或方法Alt+F1:查找当前代码文件所在位置 Ctrl+Alt+B:找所有的子类,可以跳转到抽象方法的实现 Ctrl+Shift+B:找变量的类 Ctrl+G:定位行Ctrl+F:查找文本Ctrl 2016-01-06 IDE #idea
windows下查看端口、查看进程、杀进程 查看端口 netstat -ano|findstr “8080” 查看进程 tasklist|findstr “2612” 杀进程 ①taskkill /im 进程名称 例如: 1taskkill /im qq.exe ②taskkill /pid 进程号 -t -f 例如: 1taskkill /pid 6200 ③wmic process where name 2015-12-29