01 2022 档案

Dubbo使用Rest开发服务
摘要:使用场景 可以基于标准的Java REST API——JAX-RS 2.0(Java API for RESTful Web Services的简写), 也就是REST的api和注解,为dubbo提供调用支持。 Service示例 在Dubbo使用Rest时,Service接口,作用类似于Sprin 阅读全文

posted @ 2022-01-26 22:07 乐之者v 阅读(696) 评论(0) 推荐(0) 编辑

Intellij Idea新建 SpringBoot 项目
摘要:SpringBoot: SpringBoot开发项目非常方便,无需配置,开箱即用。可以用Intellij Idea快速新建 SpringBoot 项目。 具体过程: 点击Intellij Idea左上角的 File--> New --> Project -->Spring Initializr 如果 阅读全文

posted @ 2022-01-25 19:33 乐之者v 阅读(392) 评论(0) 推荐(0) 编辑

druid对数据库密码进行加密解密
摘要:使用场景 数据库密码直接使用明文不太安全,可以用druid对数据库密码进行加密解密。 Maven依赖: <dependency> <groupId>com.alibaba</groupId> <artifactId>druid</artifactId> <version>1.2.8</version 阅读全文

posted @ 2022-01-25 15:56 乐之者v 阅读(545) 评论(0) 推荐(0) 编辑

SpringBoot2.X整合集成Dubbo
摘要:环境安装 Dubbo使用zookeeper作为注册中心,首先要安装zookeeper。 Windows安装zookeeper如下: https://blog.csdn.net/qq_33316784/article/details/88563482 Linux安装zookeeper如下: https 阅读全文

posted @ 2022-01-24 23:33 乐之者v 阅读(473) 评论(0) 推荐(0) 编辑

IDEA启动项目报错:Caused by: java.io.FileNotFoundException: class path resource [.properties] cannot be opened because it does not exist
摘要:IDEA启动项目报错 Caused by: java.io.FileNotFoundException: class path resource [.properties] cannot be opened because it does not exist 解决方法: 1.检查文件的路径是否正确, 阅读全文

posted @ 2022-01-24 21:29 乐之者v 阅读(4481) 评论(0) 推荐(0) 编辑

SpringBoot无法访问接口,报错:This application has no explicit mapping for /error, so you are seeing this as a fallback.
摘要:问题 SpringBoot启动后,无法访问接口,报错如下: Whitelabel Error Page This application has no explicit mapping for /error, so you are seeing this as a fallback. There w 阅读全文

posted @ 2022-01-23 21:46 乐之者v 阅读(10642) 评论(0) 推荐(0) 编辑

Dubbo添加过滤器(二)---日志打印接口耗时
摘要:Dubbo添加过滤器 详情见: https://www.cnblogs.com/expiator/p/14557091.html 本文主要是用Dubbo添加过滤器,统计接口耗时 日志打印接口耗时 import com.alibaba.dubbo.common.Constants; import co 阅读全文

posted @ 2022-01-18 16:24 乐之者v 阅读(499) 评论(0) 推荐(0) 编辑

ElastaticSearch -- es深度分页 searchAfter
摘要:searchAfter深度分页 es一次只能查1万条数据,如果超过1万,会报错如下: "reason": { "type": "query_phase_execution_exception", "reason": "Result window is too large, from + size m 阅读全文

posted @ 2022-01-04 01:03 乐之者v 阅读(1519) 评论(0) 推荐(0) 编辑

ElastaticSearch -- es客户端RestHighLevelClient
摘要:RestHighLevelClient es的客户端有 RestClient、 TransportClient 、 RestHighLevelClient, RestClient、 TransportClient不适合高版本的es,官方推荐使用RestHighLevelClient. maven配置 阅读全文

posted @ 2022-01-01 19:23 乐之者v 阅读(312) 评论(0) 推荐(0) 编辑

< 2025年2月 >
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 1
2 3 4 5 6 7 8

导航

统计

点击右上角即可分享
微信分享提示