随笔分类 -  JAVA

上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 16 下一页
JAVA
摘要:RocketMQ客户端中有两个独立的消费者实现类:org.apache.rocketmq.client.consumer.DefaultMQPullConsumer 和 org.apache.rocketmq.client.consumer.DefaultMQPushConsumer Default 阅读全文
posted @ 2023-02-24 08:46 VipSoft 阅读(637) 评论(0) 推荐(0)
摘要:消费流程 消费者组: 一个逻辑概念,在使用消费者时需要指定一个组名。一个消费者组可以订阅多个Topic。 消费者实例: 一个消费者组程序部署了多个进程,每个进程都可以称为一个消费者实例。 订阅关系: 一个消费者组订阅一个 Topic 的某一个 Tag,这种记录被称为订阅关系。RocketMQ规定消费 阅读全文
posted @ 2023-02-23 09:49 VipSoft 阅读(668) 评论(0) 推荐(0)
摘要:RocketMQ客户端的消息发送通常分为以下3层 业务层:通常指直接调用RocketMQ Client发送API的业务代码。 消息处理层:指RocketMQ Client获取业务发送的消息对象后,一系列的参数检查、消息发送准备、参数包装等操作。 通信层:指RocketMQ基于Netty封装的一个RP 阅读全文
posted @ 2023-02-21 09:02 VipSoft 阅读(405) 评论(0) 推荐(1)
摘要:https://rocketmq.apache.org/ Apache RocketMQ是一款开源的、分布式的消息投递与流数据平台。出生自阿里巴巴,在阿里巴巴内部经历了3个版本后,作为Apache 顶级开源项目之一直到现在。在GitHub上有10000+star、5000+fork、170+cont 阅读全文
posted @ 2023-02-16 09:22 VipSoft 阅读(322) 评论(0) 推荐(0)
摘要:现象1 mapper 资源扫不到 resources 建的是 目录 ,不是 package 所以如果直接 a.b 的方式创建,会扫描不到 mapper.xml 文件 现象2 缺少配置文件 HisDruidConfig SpringBoot 配置多数据源 现象3 没有启动添加扫描 启动项缺少扫描 Ma 阅读全文
posted @ 2023-01-05 14:45 VipSoft 阅读(1424) 评论(0) 推荐(0)
摘要:我的修改: <!--jdbc--> serverTimezone=Asia/Shanghai <!--Mapper 之前写的 TIMESTAMP ,出生日期,没必要带小时,改成 DATE 解决问题--> <result column="patient_birthdate" property="pat 阅读全文
posted @ 2022-12-09 18:02 VipSoft 阅读(2983) 评论(1) 推荐(2)
摘要:Caused by: org.apache.kafka.connect.errors.ConnectException: Error reading MySQL variables: The server time zone value '�й���׼ʱ��' is unrecognized or 阅读全文
posted @ 2022-12-08 11:07 VipSoft 阅读(343) 评论(0) 推荐(1)
摘要:CDC CDC 是 Change Data Capture(变更数据获取)的简称。核心思想是,监测并捕获数据库的变动(包括数据或数据表的插入、更新以及删除等),将这些变更按发生的顺序完整记录下来,写入到消息中间件中以供其他服务进行订阅及消费。 CDC 的种类 CDC 主要分为基于查询和基于 Binl 阅读全文
posted @ 2022-12-08 08:57 VipSoft 阅读(1526) 评论(0) 推荐(0)
摘要:-source 1.5 中不支持静态接口方法调用 (请使用 -source 8 或更高版本以启用静态接口方法调用) File -> Project Structure File -> Settings -> Build -> Compiler -> Java Compiler 阅读全文
posted @ 2022-12-06 18:02 VipSoft 阅读(249) 评论(0) 推荐(0)
摘要:MyBatis 在插入 Oralce 时报:ORA-01465: 无效的十六进制数字 解决方法: # 插入或更新时 String -> BLOB字段:RAWTOHEX(#{字段名}) String -> DATE:to_date(#{字段名},'yyyy-mm-dd hh24:mi:ss') # 查 阅读全文
posted @ 2022-12-06 14:01 VipSoft 阅读(630) 评论(0) 推荐(0)
摘要:可以使用 JMeter 辅助测试 https://blog.csdn.net/weixin_45014379/article/details/124190381 @RestController @RequestMapping({"/Test"}) public class test { Logger 阅读全文
posted @ 2022-12-06 11:20 VipSoft 阅读(1409) 评论(0) 推荐(0)
摘要:POM 添加依赖 <dependency> <groupId>cn.hutool</groupId> <artifactId>hutool-all</artifactId> <version>5.3.7</version> </dependency> <!--添加依赖--> <dependency> 阅读全文
posted @ 2022-11-16 12:03 VipSoft 阅读(830) 评论(0) 推荐(0)
摘要:WebService cxf No compiler detected, make sure you are running on top of a JDK instead of a JRE [2022-11-14 09:55:01.644] ERROR [scheduling-1] ZysoftS 阅读全文
posted @ 2022-11-14 10:17 VipSoft 阅读(444) 评论(0) 推荐(0)
摘要:Intellij IDEA 中运行正常,linux 运行正常, cmd 下运行 报:MalformedInputException: Input length = 1 微服务项目,在Nacos中做了配置,在引用 Nacos中配置时,编码问题,导致的错误 org.yaml.snakeyaml.erro 阅读全文
posted @ 2022-11-09 10:13 VipSoft 阅读(721) 评论(0) 推荐(0)
摘要:下载文件 SpringBoot 接口输出文件流 & Vue 下载文件流,获取 Header 中的文件名 @SpringBootTest class DownloadTests { Logger logger = LoggerFactory.getLogger(this.getClass()); Co 阅读全文
posted @ 2022-10-09 13:46 VipSoft 阅读(960) 评论(0) 推荐(0)
摘要:驼峰下划线互转 /** * 将驼峰风格替换为下划线风格 */ public static String camelhumpToUnderline(String str) { final int size; final char[] chars; final StringBuilder sb = ne 阅读全文
posted @ 2022-09-21 09:30 VipSoft 阅读(127) 评论(0) 推荐(0)
摘要:Spring Boot JWT 用户认证 JWT token验证后,通过 ThreadLocal 进行传值,在服务层直接使用 Threadlocal 获取当前用户,的Id、姓名,进行行为记录 定义一个用户实体类 package com.vipsoft.core.user.entity; import 阅读全文
posted @ 2022-09-13 21:27 VipSoft 阅读(392) 评论(0) 推荐(0)
摘要:[2022-09-07 11:45:35.517] [Druid-ConnectionPool-Create-5339735] [ERROR] com.alibaba.druid.pool.DruidDataSource - create connection SQLException, url: 阅读全文
posted @ 2022-09-07 12:00 VipSoft 阅读(6191) 评论(0) 推荐(0)
摘要:SpringBoot 配置多数据源 无非就是namespace写错了、mapper接口或者xml文件名字没对应上等 mapper.xml中的namespace和实际的mapper文件不一致 mapper接口中的方法名和mapper.xml中的id标签不一致 Mapper.xml没有构建进去 打开ta 阅读全文
posted @ 2022-09-07 11:23 VipSoft 阅读(111) 评论(0) 推荐(0)
摘要:SpringBoot 接口输出文件流 & Vue 下载文件流,获取 Header 中的文件名 为什么浏览器中有些文件点击后是预览,有些是下载:https://www.cnblogs.com/vipsoft/p/18267174 Spring Boot 接口返回文件流 :https://www.cnb 阅读全文
posted @ 2022-09-06 17:50 VipSoft 阅读(3279) 评论(0) 推荐(0)

上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 16 下一页