上一页 1 2 3 4 5 6 7 8 ··· 21 下一页
摘要: 失效查询 1. 异步方法和调用方法在同一个类中2. 启动类上没有使用@EnableAsync注解 3. 异步方法所在的类没有加入bean:异步方法所在类必须用@Controller/@RestController/@Service/@Componet等注解,加入到Ioc里 4. bean必须是用@A 阅读全文
posted @ 2022-09-08 10:56 jason47 阅读(74) 评论(0) 推荐(0) 编辑
摘要: 1. ubuntu18.04/16.04安装版本mongodb-linux-x86_64-2.6.10,启动正常,但是Compass链接报错 Server at 10.15.7.72:27017 reports maximum wire version 2, but this version of 阅读全文
posted @ 2022-09-02 15:29 jason47 阅读(817) 评论(0) 推荐(0) 编辑
摘要: 感谢:https://zhuanlan.zhihu.com/p/89223401 原则 @RequestBody 注解,必须与 contentType 类型application/json配合使用。 @RequestParam 注解,必须与 contentType 类型application/x-w 阅读全文
posted @ 2022-08-02 11:11 jason47 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 示例文件是irs-1.0.1-RELEASE.jar 1) 将jar包拷贝至另外的文件夹,如mkdir test 2) 解压,如下图,注意文件名按实际文件 3) 找到lib文件夹 依赖文件如下 4) 删除上述jar,如下图 5) 回到test目录,将原先的irs-1.0.1-RELEASE.jar  阅读全文
posted @ 2022-08-01 17:10 jason47 阅读(377) 评论(0) 推荐(0) 编辑
摘要: 因为最近爆出的log4j2漏洞,发现项目里有log4j-to-slf4j2.14和log4j-api2.14,而我使用的是logback 所以可以直接将log4j2排除掉。 <dependency> <groupId>org.springframework.boot</groupId> <artif 阅读全文
posted @ 2022-08-01 16:22 jason47 阅读(1626) 评论(0) 推荐(0) 编辑
摘要: 感谢https://zhuanlan.zhihu.com/p/474844021 前言 SLF4J与其它日志组件调用关系图 SLF4J,即简单日志门面(Simple Logging Facade for Java),不是具体的日志解决方案,它只服务于各种各样的日志系统。 SLF4J最常用的日志实现框 阅读全文
posted @ 2022-08-01 16:15 jason47 阅读(541) 评论(0) 推荐(0) 编辑
摘要: 1.创建索引 PUT http://127.0.0.1:9200/test_index 返回 { "acknowledged": true, "shards_acknowledged": true, "index": "test_index" } 2.增加文档 创建文档 //如果不指定 id,则需要 阅读全文
posted @ 2022-07-29 15:15 jason47 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 使用pretty如: GET /website/blog/123?pretty 或者 PUT http://localhost:9200/colleges?pretty 作用: 在请求的查询串参数中加上 PRETTY 参数,正如前面的例子中看到的,这将会调用 ELASTICSEARCH 的 PRET 阅读全文
posted @ 2022-07-28 15:36 jason47 阅读(241) 评论(0) 推荐(0) 编辑
摘要: 1. 依赖 <!-- kafka client --> <dependency> <groupId>org.springframework.kafka</groupId> <artifactId>spring-kafka</artifactId> </dependency> 2. 配置文件配置kaf 阅读全文
posted @ 2022-07-28 13:25 jason47 阅读(1040) 评论(0) 推荐(0) 编辑
摘要: elasticsearch-head是elasticsearch的可视化工具 在mac下安装elasticsearch-head 1. elasticsearch-head依赖node grunt,先安装node brew install node 安装成功后使用node -v验证 v18.0.0 阅读全文
posted @ 2022-07-21 15:29 jason47 阅读(790) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 21 下一页