2019年3月5日

springmvc 打包遇到的问题

摘要: 1、测试有错误,过不去,mvn install -DSkipTests 2、设置resources路径,在pom.xml中添加 3、当程序有运行时异常时,启动了tomcat,也无法访问8080页面。 阅读全文

posted @ 2019-03-05 09:39 重八 阅读(214) 评论(0) 推荐(0) 编辑

2019年2月24日

mybatis-plus 学习笔记

摘要: 一、首先是POM 未添加Velocity依赖会抛出:Caused by: java.lang.ClassNotFoundException: org.apache.velocity.context.Context 运行application,却未注释mybatis-plus-generator,会抛 阅读全文

posted @ 2019-02-24 01:07 重八 阅读(1501) 评论(0) 推荐(0) 编辑

2018年12月5日

linux oracle服务器无密码登录dba

摘要: 1、su - oracle 切换到oracle 2、sqlplus sys/manger as sysdba 3、新建用户: create user username identified by password default tablespace user_date; username-用户,p 阅读全文

posted @ 2018-12-05 17:18 重八 阅读(3783) 评论(0) 推荐(0) 编辑

2018年11月27日

python redis 发布订阅 实现 RPC同步

摘要: 工作中用到的场景是,python主程序发布消息到Redis,然后停住等待Redis上订阅的Response。等待过程是阻塞的,相当于把异步通信封装成同步通信,类似于Java的RPC。 RPC封装的代码如下: 主程序调用方法: 阅读全文

posted @ 2018-11-27 16:32 重八 阅读(710) 评论(0) 推荐(0) 编辑

2018年10月16日

git 本地与远程分支冲突 解决

摘要: git pull origin master git rebase origin/master git merge origin/master git rebase --continue git push -u origin master 阅读全文

posted @ 2018-10-16 18:01 重八 阅读(1187) 评论(0) 推荐(0) 编辑

2018年9月5日

oracle 存储过程 建表插值等

摘要: oracle procedure 阅读全文

posted @ 2018-09-05 17:12 重八 阅读(3231) 评论(0) 推荐(0) 编辑

2018年8月10日

pandas groupby

摘要: http://pandas.pydata.org/pandas-docs/stable/groupby.html groupby一般分为3步: 1.分组 2.apply 3.组合 其中apply可以是聚合、转换、过滤等 应该把groupby和sql语句中的group by类比,几乎相同。 当时gro 阅读全文

posted @ 2018-08-10 14:03 重八 阅读(191) 评论(0) 推荐(0) 编辑

2018年8月5日

java做web抓取

摘要: 就像许多现代科技一样,从网站提取信息这一功能也有多个框架可以选择。最流行的有JSoup、HTMLUnit和Selenium WebDriver。我们这篇文章讨论JSoup。JSoup是个开源项目,提供强大的数据提取API。可以用它来解析给定URL、文件或字符串中的HTML。它还能操纵HTML元素和属 阅读全文

posted @ 2018-08-05 22:31 重八 阅读(208) 评论(0) 推荐(0) 编辑

2018年7月27日

mac环境下IDEA无法下载plugin或者自动下载Library

摘要: 卧槽,原谅我这么晚还在写blog,明天早上还要上班。 问题,idea 新建springmvc无法自动下载lib,报这个: you have JVM property "https.proxyHost" set to 127.0.0.1". This may lead to incorrect beh 阅读全文

posted @ 2018-07-27 01:35 重八 阅读(5121) 评论(1) 推荐(2) 编辑

2018年7月22日

高并发场景下System.currentTimeMillis()的性能问题的优化 以及SnowFlakeIdWorker高性能ID生成器

摘要: package xxx; import java.sql.Timestamp; import java.util.concurrent.*; import java.util.concurrent.atomic.AtomicLong; /** * 高并发场景下System.currentTimeMillis()的性能问题的优化 * * System.currentTimeMillis... 阅读全文

posted @ 2018-07-22 22:33 重八 阅读(2373) 评论(0) 推荐(0) 编辑

导航