上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 16 下一页
摘要: 约定优于配置是springboot简化配置的思路,其中它提供的自动配置、基于注解配置为我们搭建项目框架带来了很大的便利。 使用springboot的项目跟仅使用spring的项目相比,少了很多xml配置文件,基于自动配置或者使用注解和配置类就可完成大多数配置。 springboot + dubbo搭 阅读全文
posted @ 2020-09-19 12:24 cdfive 阅读(3876) 评论(0) 推荐(0)
摘要: 阿里云ARMS控制台发现线上搜索服务的批量写入方法报大量异常: [DUBBO] Got unchecked and undeclared exception which called by 192.168.x.x. service: xxx.IProductSearchService, method 阅读全文
posted @ 2020-09-13 12:05 cdfive 阅读(5736) 评论(4) 推荐(0)
摘要: 记录今天调试chrome中一个后端接口,通过cUrl导入到postman中测试,修改body里数据遇到的问题。 body类型是x-www-form-urlencoded,key为data,值为json格式,有url编码。 { "id" : 0, "depotId" : "34365148653568 阅读全文
posted @ 2020-08-15 21:57 cdfive 阅读(2141) 评论(0) 推荐(0)
摘要: 老项目(非SpringBoot)使用Spring+Dubbo,主要xml+部分注解配置。 通过com.alibaba.dubbo.container.Main.main(args);启动容器,使用maven-shade-plugin插件打包。 需要注意的是,如果自定义了Dubbo或Sentinel的 阅读全文
posted @ 2020-07-26 22:28 cdfive 阅读(2439) 评论(0) 推荐(0)
摘要: 服务器密码修改后,mac终端使用ssh连接,报错提示: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@ 阅读全文
posted @ 2020-07-03 15:15 cdfive 阅读(655) 评论(0) 推荐(0)
摘要: 今天用本地IDEA启动服务做单元测试,发现速度变慢;启动dubbo服务和web项目,启动速度也变很慢。 浏览器打开内网和外网网页,速度也很慢。 网络监控里查看发现,有个nsurlsessiond的进程占了大部分网络带宽。 在活动监视器里结束该进程,问题解决。 搜了下该进程跟iCloud同步有关。 参 阅读全文
posted @ 2020-06-26 11:33 cdfive 阅读(4708) 评论(0) 推荐(0)
摘要: 项目中某个java文件左边栏右键 Annotate无法显示,IDEA提示Number of lines annotated by Git is not equal to number of lines in the file, check file encoding and line separat 阅读全文
posted @ 2020-05-16 22:56 cdfive 阅读(9479) 评论(0) 推荐(0)
摘要: 系统 Command + C:复制,右键粘贴时按住Option即剪切 Command + H:隐藏窗口 Command + J: 打开界面可调整图标大小 Command + E:推出 Command + shift + G:Finder中前往 Control + Space / Shift: 切换输 阅读全文
posted @ 2020-05-10 15:43 cdfive 阅读(1102) 评论(0) 推荐(0)
摘要: 概念 KEYS 查找所有符合给定模式pattern的key // 需很谨慎使用,耗时长影响正常业务,线上禁用KEYS命令 SCAN 用于增量地迭代获取key 语法 SCAN cursor [MATCH pattern] [COUNT count] SSCAN、HSCAN、ZSCAN命令与之类似 示例 阅读全文
posted @ 2020-03-31 21:54 cdfive 阅读(1031) 评论(0) 推荐(0)
摘要: 控制器(Controller) "/":拦截后端接口请求,即通过 、`@RestController @RequestMapping`标记的类,用于后端接口。 "/ ":拦截所有请求,除了后端接口包括,资源文件、JSP页面等。 用web.xml配置,一般配置为"/"。 如果是使用SpringBoot 阅读全文
posted @ 2020-03-28 11:53 cdfive 阅读(774) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 16 下一页