上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 24 下一页
摘要: Starting from Spring Boot 2.0 -web(false)/setWebEnvironment(false) is deprecated and instead Web-Application-Type can be used to specify 阅读全文
posted @ 2018-08-11 10:28 wujf 阅读(6575) 评论(0) 推荐(1) 编辑
摘要: 1、show processlist; 2、kill id 阅读全文
posted @ 2018-08-08 10:08 wujf 阅读(1241) 评论(0) 推荐(0) 编辑
摘要: 1、synchronized 2、ReentrantLock 3、Semaphore 4、volatile 阅读全文
posted @ 2018-08-06 17:22 wujf 阅读(880) 评论(0) 推荐(0) 编辑
摘要: cd ~ vi .bash_profile alias ll='ls -ltr' . .bash_profile ps:写在.bashrc终端断开就没了 阅读全文
posted @ 2018-08-02 10:07 wujf 阅读(653) 评论(0) 推荐(0) 编辑
摘要: 原理:通过自定义mybatis插件,拦截Executor的update和query方法,检查sql中有select就用读的库,其它的用写的库(如果有调用存储过程就另当别论了) 附: MyBatis 允许你在已映射语句执行过程中的某一点进行拦截调用。默认情况下,MyBatis 允许使用插件来拦截的方法 阅读全文
posted @ 2018-08-01 16:54 wujf 阅读(2272) 评论(0) 推荐(1) 编辑
摘要: select curdate(); --获取当前日期 select last_day(curdate()); --获取当月最后一天。 select DATE_ADD(curdate(),interval -day(curdate())+1 day); --获取本月第一天 select date_add(curd... 阅读全文
posted @ 2018-07-25 11:13 wujf 阅读(16408) 评论(0) 推荐(0) 编辑
摘要: mysql中 myisam,innodb默认使用的是 Btree索引,至于btree的数据结构是怎样的都不重要,只需要知道结果,既然是索引那这个数据结构最后是排好序;就像新华字典他的目录就是按照a,b,c..这样排好序的;所以你在找东西的时候才快,比如你找 “中” 这个字的解释,你肯定就会定位到目录 阅读全文
posted @ 2018-07-12 18:10 wujf 阅读(472) 评论(0) 推荐(0) 编辑
摘要: 1、定义路由app.py 2、定义main入口main.py 3、定义控制器testController.py 阅读全文
posted @ 2018-07-12 10:42 wujf 阅读(144) 评论(0) 推荐(0) 编辑
摘要: Github地址:https://github.com/NLPchina/elasticsearch-sql elasticsearch-sql插件可以方便我们使用SQL语言来对elasticsearch进行查询 1、进入elasticsearch的安装目录,执行如下命令(windows和linux 阅读全文
posted @ 2018-07-09 14:21 wujf 阅读(2308) 评论(0) 推荐(1) 编辑
摘要: 1、head 插件Github地址:https://github.com/mobz/elasticsearch-head 2、npm install 3、npm run start 由于head插件监听的端口是9100,而elasticsearch的REST接口的端口是9200, 因此需要设置ela 阅读全文
posted @ 2018-07-09 11:50 wujf 阅读(1135) 评论(0) 推荐(0) 编辑
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 24 下一页