随笔分类 -  后端日记

摘要:MySQL 的尾部空格忽略规则(trailing space ignoring in string comparisons)几乎存在于所有主流 MySQL 版本中,并且是 SQL 标准兼容行为,不是某个特定版本的“bug”或“特性”。 ✅ 该规则适用的 MySQL 版本范围 MySQL 3.23(早 阅读全文
posted @ 2025-03-19 10:46 Journey&Flower 阅读(4) 评论(0) 推荐(0)
摘要:1.部署完成之后, 需要确保各项端口对外开放,并且 端口和服务器端口无冲突 描述 端口 NameServer 端口 9876 Broker 监听端口 10911 Broker 快速监听端口 10909 Broker HA 监听端口 10912 Proxy 远程监听端口 8080 Proxy grpc 阅读全文
posted @ 2024-10-26 23:02 Journey&Flower 阅读(52) 评论(0) 推荐(0)
摘要:错误日志 Field rocketMQTemplate in com.invech.kitty.rocketmq.producer.xxxx required a bean of type 'org.apache.rocketmq.spring.core.RocketMQTemplate' that 阅读全文
posted @ 2024-10-25 14:11 Journey&Flower 阅读(127) 评论(0) 推荐(0)
摘要:数字特殊字符JSON字符串校验com.alibaba.fastjson数字/特殊字符JSON字符串校验com.alibaba.fastjson 以下特殊字符都会被JSONValidator.from判定为合格的 JSON格式字符 名称 正则 示例 判定 有理数/无理数 ^[+-]?\d+(\.\d+)?$ -999.88 NumberUtils 科学计数法数 ^[+= 阅读全文
posted @ 2024-06-20 13:35 Journey&Flower 阅读(60) 评论(0) 推荐(0)
摘要:-- 查询重复数据 select qr_code,created_at,station_by from t_product_data where flag = 0 and qr_code in( select qr_code from t_product_data t where flag = 0 阅读全文
posted @ 2024-06-07 09:58 Journey&Flower 阅读(10) 评论(0) 推荐(0)
摘要:https://www.elastic.co/docs/reference/query-languages/query-dsl/regexp-syntax Elasticsearch kibana 分词搜索: 例如积分兑换是同步在 http-nio-8080-exec-23 线程处理, 则可以使用如 阅读全文
posted @ 2024-05-30 13:20 Journey&Flower 阅读(785) 评论(0) 推荐(0)
摘要:RedisCluster集群启动要设置 Redis 集群启动,可以遵循以下步骤: 步骤 1: 下载和安装 Redis 首先,需要下载并安装 Redis。可以从 Redis 官方网站下载适合您系统的 Redis 版本。 步骤 2: 配置 Redis 节点 在每个节点上编辑 Redis 配置文件(redis.conf),确保配置文件启 阅读全文
posted @ 2024-04-18 14:59 Journey&Flower 阅读(577) 评论(0) 推荐(0)
摘要:1-while循环 create procedure sum1(count int) begin declare sum int default 0; declare i int default 1; while i<=count do set sum=sum+i; set i=i+1; end w 阅读全文
posted @ 2024-04-18 14:59 Journey&Flower 阅读(55) 评论(0) 推荐(0)
摘要:<?xml version="1.0" encoding="UTF-8"?> <settings xmlns="http://maven.apache.org/SETTINGS/1.2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 阅读全文
posted @ 2024-03-25 14:54 Journey&Flower 阅读(30) 评论(0) 推荐(0)
摘要:蓝奏云盘(中文版):https://journeyofflower.lanzoub.com/iWS6G206f1bg(未编译,需编译) 官方下载(英文版):https://www.oracle.com/java/technologies/javase-jdk8-doc-downloads.html( 阅读全文
posted @ 2024-03-15 16:08 Journey&Flower 阅读(117) 评论(0) 推荐(0)
摘要:查询分组求和 db.coin_log.aggregate([ { $match: { merchan_code: 111111 ,uid: 170861762319106048 ,category: { $in: [100,200,300] } ,username: { $regex: "real0 阅读全文
posted @ 2024-02-23 20:51 Journey&Flower 阅读(196) 评论(0) 推荐(0)
摘要:可能用MyBatis-Plus不多的朋友突然使用时,可能对eq(boolean condition, R column, Object val) 的 eq(false, ...)和ne傻傻分不清楚,认为eq是sql等于(=)匹配,然后就想当让认为eq(false, ...)是不等于(!=)匹配,然后 阅读全文
posted @ 2023-12-26 10:49 Journey&Flower 阅读(1966) 评论(0) 推荐(1)
摘要:mysql语法 insert values on duplicate key update where新增时如果唯一列重复,则更新原始数据(与之重复的数据) create or replace TABLE `t_user` ( `id` int(10) NOT NULL AUTO_INCREMENT COMMENT '主键', `user_code` varchar(32) CHARACTER SE 阅读全文
posted @ 2023-09-23 20:53 Journey&Flower 阅读(93) 评论(0) 推荐(0)
摘要:以下输出可以借助 hutool 工具包更好替代 String result = String.format("The format method is %s!", "great"); // result now equals "The format method is great!". You do 阅读全文
posted @ 2021-04-29 10:20 Journey&Flower 阅读(139) 评论(0) 推荐(0)