摘要: 1,TypeAliasesPackage失效 虽然设置了: sqlSessionFactory.setTypeAliasesPackage("com.onloon.b2b.sdk.entity;com.onloon.b2b.sdk.query");JAR启动的时候报错:XML中CurrencyDO类 阅读全文
posted @ 2022-05-27 11:31 wanhua.wu 阅读(140) 评论(0) 推荐(0) 编辑
摘要: logback.xml配置详解: <?xml version="1.0" encoding="UTF-8"?> <configuration scan="true" scanPeriod="60 seconds" debug="false"> <!-- 应用名称 --> <property name 阅读全文
posted @ 2022-05-20 14:43 wanhua.wu 阅读(1320) 评论(0) 推荐(0) 编辑
摘要: select right(aa.c, length(aa.c) - locate(',', aa.c))from ( select group_concat(id) as c from tb_xl_route group by shop_id, type, route having count(1) 阅读全文
posted @ 2022-01-18 17:45 wanhua.wu 阅读(235) 评论(0) 推荐(0) 编辑
摘要: 问题: 页面上有个数据显示速度慢,打开浏览器检查看了下,接口速度尽然有550-1.8s时间,主要是TTFB耗时太大,然后我使用同样的请求在服务器上执行,其他人电脑上执行只有20-50ms,那这个耗时应该和我的网络或者浏览器有关 初步怀疑是浏览器插件导致的,关闭了所有插件,发现接口还是慢,随后看到网络 阅读全文
posted @ 2021-12-29 14:12 wanhua.wu 阅读(172) 评论(0) 推荐(0) 编辑
摘要: https://www.jianshu.com/p/2ae75635d237 https://www.metabase.com/ Metabase 可以使用java -jar的方式运行,支持各种数据库mysql, mongodb的查询语句来动态生成图表(折线图等),功能非常强大 阅读全文
posted @ 2021-12-10 11:28 wanhua.wu 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 重点: 在log4j.properties中添加: log4j.logger.com.onloon.custom.data.mapper1=DEBUG 在application.properties中添加: logging.level.com.onloon.custom.data.mapper1=D 阅读全文
posted @ 2021-08-03 13:01 wanhua.wu 阅读(940) 评论(0) 推荐(0) 编辑
摘要: 我们有个项目本地启动特别慢,Springboot项目,工具使用了Idea每次启动都需要6,7分钟,有时候完全启动不起来,总以为是电脑性能问题,差点换电脑 真的受不了了,看看别人有没有遇到这种情况,发现有人说是debug启动,如果有断点可能会导致项目启动特别慢!!! 将项目中所有断点去除后,再启动不到 阅读全文
posted @ 2021-04-13 16:08 wanhua.wu 阅读(517) 评论(0) 推荐(0) 编辑
摘要: nohup [命令行] > [日志文件] & 阅读全文
posted @ 2021-01-06 18:02 wanhua.wu 阅读(34) 评论(0) 推荐(0) 编辑
摘要: String content = "<meta property=\"og:description\" content=\"freeCodeCamp Earth &#x6709; 127,712 &#x4f4d;&#x6210;&#x54e1;&#x3002; Welcome to freeCode 阅读全文
posted @ 2020-09-09 13:55 wanhua.wu 阅读(185) 评论(0) 推荐(0) 编辑
摘要: //执行shell命令和脚本public static String getIPByShell(String inetType) { String ifip = ""; StringBuilder sb = new StringBuilder(); String command = "/usr/sb 阅读全文
posted @ 2020-09-02 13:45 wanhua.wu 阅读(196) 评论(0) 推荐(0) 编辑
摘要: POST /index_name/_cache/clear 清理掉相关聚合查询索引的缓存 阅读全文
posted @ 2020-08-06 20:22 wanhua.wu 阅读(154) 评论(0) 推荐(0) 编辑
摘要: SHOW ENGINE INNODB STATUS 阅读全文
posted @ 2020-08-06 18:44 wanhua.wu 阅读(82) 评论(0) 推荐(0) 编辑
摘要: Maven解决冲突的工具 ①,使用maven helper②,mvn dependency:tree③,使用idea自带的maven依赖图,进行ctrl+f搜索冲突的依赖,然后进行exclusion 常见错误 1,一个类同时存在多个不同的jar包中(jar冲突) 解决: ①,找到冲突的jar依赖有那 阅读全文
posted @ 2020-06-10 01:00 wanhua.wu 阅读(2173) 评论(0) 推荐(1) 编辑
摘要: clustername: bshop index: mlanguage_test type: mlanguage_type直接创建索引即可,不用创建type,创建索引之后会有一个自动的type与其对应 PUT mlanguage_test 设置权限: kibana - Management - In 阅读全文
posted @ 2020-06-05 16:36 wanhua.wu 阅读(410) 评论(0) 推荐(0) 编辑
摘要: 查询邮箱:info@whistlingwoods.net SELECT CREATE_TIME FROM t_mail_send_extend46 WHERE USER_ID = 'e4cf948cad9f40be8a1ccbc7eb8666ee' AND LOCATE('info@whistlin 阅读全文
posted @ 2020-06-03 13:44 wanhua.wu 阅读(285) 评论(0) 推荐(0) 编辑
摘要: static final int poolSize = 50; static final long keepAliveTime = 0L; static final ThreadFactory threadFactory = new ThreadFactoryBuilder().setNameFor 阅读全文
posted @ 2020-05-30 11:40 wanhua.wu 阅读(200) 评论(0) 推荐(0) 编辑
摘要: 需求:获取指定用户下某个邮箱最近一次发送时间 场景: CREATE_TIME, USER_ID 已经添加索引, ADDRESS是text字段无法添加索引。 原语句:(max导致全表扫描!!!) SELECT MAX(CREATE_TIME) AS MAX0 FROM t_mail_send_exte 阅读全文
posted @ 2020-05-19 15:19 wanhua.wu 阅读(191) 评论(0) 推荐(0) 编辑
摘要: 需求: 有一个表t_mail_send_extend, 主键唯一索引是id,因为数据量达到了500多万,占用磁盘空间62GB,现在考虑使用mycat进行分表,分表之前需要将数据提前从mycql查询然后插入到mycat中的分表中,在查询过程中会遇到查询效率问题,越往后越慢 一般的查询:(通过控制lim 阅读全文
posted @ 2020-05-11 17:14 wanhua.wu 阅读(419) 评论(0) 推荐(0) 编辑
摘要: 原始语句: INSERT INTO mail_send ( createTime, updateTime, flag, accountId, messageID, sender, senderName, fromer, replyTo, toer, ccer, bccer, SUBJECT, tex 阅读全文
posted @ 2020-04-30 14:47 wanhua.wu 阅读(289) 评论(0) 推荐(0) 编辑
摘要: /** * 获取请求体内容 * @param request * @return */ private String getBody(HttpServletRequest request) { BufferedReader reader; String body = ""; try { reader 阅读全文
posted @ 2020-04-03 16:56 wanhua.wu 阅读(909) 评论(0) 推荐(0) 编辑
摘要: 炖汤:清热解毒,除湿,脾虚,盗汗 太子参 麦冬 无花果 瘦肉 阅读全文
posted @ 2020-03-29 12:17 wanhua.wu 阅读(134) 评论(0) 推荐(0) 编辑
摘要: Introspector.decapitalize(shortClassName) 阅读全文
posted @ 2020-03-28 15:06 wanhua.wu 阅读(105) 评论(0) 推荐(0) 编辑
摘要: /** * 获取总页数 * @param listSize list * @param size 页大小 * @return */ public static int totalPage(Integer listSize, Integer size){ int page = listSize/siz 阅读全文
posted @ 2020-02-27 10:51 wanhua.wu 阅读(257) 评论(0) 推荐(0) 编辑
摘要: /** * 获取回调body * @param request * @return * @throws IOException */ public String getBody(HttpServletRequest request) throws IOException { String body; 阅读全文
posted @ 2020-02-27 09:50 wanhua.wu 阅读(2075) 评论(0) 推荐(0) 编辑
摘要: 在文件中搜索关键词: myword extension:java myword extension:properties 阅读全文
posted @ 2019-12-19 10:58 wanhua.wu 阅读(153) 评论(0) 推荐(0) 编辑
摘要: -- 查询死锁 show open tables where In_use > 0 -- 查找进程然后kill show PROCESSLIST; 阅读全文
posted @ 2019-12-19 10:44 wanhua.wu 阅读(185) 评论(0) 推荐(0) 编辑
摘要: @Autowired private RedisTemplate<String, Object> redisTemplate; /** * 获取分布式锁 - 过期时间 * @param key * @param expireTime 毫秒 * @return */ public Object getExpiredLock(String key, Long expireTime) { Long va 阅读全文
posted @ 2019-11-25 17:50 wanhua.wu 阅读(154) 评论(0) 推荐(0) 编辑
摘要: TCP状态转移要点 TCP协议规定,对于已经建立的连接,网络双方要进行四次握手才能成功断开连接,如果缺少了其中某个步骤,将会使连接处于假死状态,连接本身占用的资源不会被释放。网络服务器程序要同时管理大量连接,所以很有必要保证无用连接完全断开,否则大量僵死的连接会浪费许多服务器资源。在众多TCP状态中 阅读全文
posted @ 2019-11-14 10:49 wanhua.wu 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 三次握手四次挥手过程: 阅读全文
posted @ 2019-11-14 10:44 wanhua.wu 阅读(127) 评论(0) 推荐(0) 编辑
摘要: dns解析过程: 阅读全文
posted @ 2019-11-14 10:32 wanhua.wu 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 背景: 我们有一个shop相关的业务在国外aws上部署,但是本地单测过程中项目启动和运行无法连接国外的数据库和redis报错,只能通过配置代理的方式运行,之前试过Idea中的HTTP Proxy中的HTTP和SOCKS都无法正常运行,经过网上查找资料应该还是socks代理没有配置好,最后再使用XSh 阅读全文
posted @ 2019-11-07 19:34 wanhua.wu 阅读(4132) 评论(0) 推荐(1) 编辑
摘要: 统计记录接口的请求时间: 阅读全文
posted @ 2019-10-28 09:59 wanhua.wu 阅读(489) 评论(0) 推荐(0) 编辑
摘要: 生成hprof文件①,top出异常进程②,生成异常进程的dump文件jmap -dump:format=b,file=[文件名] [进程]jmap -dump:format=b,file=heap.hprof 2576③,使用JProfiler分析hprof 文件 使用JProfiler分析大对象 阅读全文
posted @ 2019-10-16 12:05 wanhua.wu 阅读(623) 评论(0) 推荐(0) 编辑
摘要: public static String mailFormatInfo(String mail){ try { if(StringUtil.isEmpty(mail)){ return mail; } //1,去除空格,特殊字符 mail = mail.trim(); mail = removeCR(mail); mail = removeSpace(mail); mail = mail.repl 阅读全文
posted @ 2019-09-17 14:53 wanhua.wu 阅读(507) 评论(0) 推荐(0) 编辑
摘要: @SuppressWarnings("rawtypes") @GetMapping("/info") public Result getInfo(String shopId, HttpServletResponse response) { if(StringUtils.isBlank(shopId)){ return Result.failure("参数不能为空"); } ... 阅读全文
posted @ 2019-08-09 11:43 wanhua.wu 阅读(248) 评论(0) 推荐(0) 编辑
摘要: show innodbstatus\G; show variables like '%timeout%'; show status like '%lock%'; show status like 'Table%'; Table_locks_immediate 指的是能够立即获得表级锁的次数 Tabl 阅读全文
posted @ 2019-07-18 14:30 wanhua.wu 阅读(301) 评论(0) 推荐(0) 编辑
摘要: 镜像命令:docker image lsdocker images --digestsdocker images java docker pull [选项] [DockerRegistry地址:端口号]/仓库名:[标签]docker build 容器命令:docker ps -sdocker run 阅读全文
posted @ 2019-06-09 23:30 wanhua.wu 阅读(181) 评论(0) 推荐(0) 编辑
摘要: mtr usercenter.onloon.net 阅读全文
posted @ 2019-05-21 22:06 wanhua.wu 阅读(1486) 评论(0) 推荐(0) 编辑
摘要: 拦截器: 添加拦截器: 阅读全文
posted @ 2019-04-19 09:19 wanhua.wu 阅读(148) 评论(0) 推荐(0) 编辑
摘要: https://github.com/alibaba/arthas/blob/master/README_CN.md 阅读全文
posted @ 2019-04-04 16:40 wanhua.wu 阅读(149) 评论(0) 推荐(0) 编辑