![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
错误收集
coderxjh
这个作者很懒,什么都没留下…
展开
-
MySQL数据库varchar字段求和出现精度丢失
在上述示例中,78.99、88.22和66.88这三个数值在二进制表示中无法精确表示,导致了舍入误差的产生。虽然这种误差在单个数值中可能并不明显,但当进行累加运算时,误差会逐步累积,最终导致了精度丢失。因此,在进行浮点数运算时,可能会产生舍入误差,从而导致精度丢失。上述示例中,我们创建了一个名为test的表,并向其中插入了三条记录,分别为78.99、88.22和66.88。后面的2代表精度,也就是小数有效位,当数据的有效位大于2时,则进行四舍五入运算,小于2时补0填充位数。原创 2023-10-18 11:34:43 · 1007 阅读 · 0 评论 -
mybatisplus 自定义mapper加多表联查结合分页插件查询时出现缺失数据的问题
最近做项目时使用了mybatisplus,分页插件也使用的是mybatisplus自带的分页插件,业务需求是查询客户列表,每个。那我们怎么才能查到正确得一对多的分页结果呢?mybatis提供另一种方式,使用mybatis的子查询映射。collection中的colum属性需要填两表关联的字段,也就是customer_id。的数量,客户列表下有多个子列表时会分成多个相同的客户。,在通过分页插件查询后,会出现。、客户列表与子列表不对等。上述语句查询的结果数是表。原创 2023-10-16 21:50:24 · 1215 阅读 · 0 评论 -
使用resultMap映射结果集Cause: java.lang.IllegalArgumentException: argument type mismatch
原因:这是因为使用resultmap映射结果集时,使用collection没有设置ofType属性。原创 2023-09-18 18:23:28 · 113 阅读 · 0 评论 -
nested exception is java.sql.SQLIntegrityConstraintViolationException: Column ‘del_flag‘ in on claus
原因:使用多表连接查询时,查询出来有多个字段’del_flag’,条件后面应该指定是哪张表的字段。原创 2023-09-18 18:19:37 · 170 阅读 · 0 评论 -
SpringBoot项目启动失败:Caused by: org.yaml.snakeyaml.error.YAMLException: java.nio.charset.MalformedInputE
把项目编码(File Encodings)全部设置为UTF-8,后重启IDEA软件。:yaml/yml配置文件解析失败。原创 2023-08-24 09:56:32 · 361 阅读 · 0 评论 -
Navicat远程连接Docker容器中的mysql:报异常,1044 - Access denied for user ‘root‘@‘%‘ to database ‘xxxxxx‘
收集平时学习时所遇到的错误原创 2023-01-31 14:14:59 · 2254 阅读 · 0 评论 -
使用nacos配置文件无限输出 ClientWorker信息
2021-08-10 21:20:18.006 INFO 3760 — [150_8848-public] c.a.n.client.config.impl.ClientWorker : [fixed-192.168.242.150_8848-public] [polling-resp] config changed. dataId=nacos-config-service, group=DEFAULT_GROUP, tenant=public2021-08-10 21:20:18.006 I.原创 2021-08-10 21:25:04 · 2699 阅读 · 3 评论 -
java.net.ConnectException: [NACOS HTTP-POST] The maximum number of tolerable server reconnection err
java.net.ConnectException: [NACOS HTTP-POST] The maximum number of tolerable server reconnection errors has been reached at com.alibaba.nacos.client.config.http.ServerHttpAgent.httpPost(ServerHttpAgent.java:181) ~[nacos-client-1.4.1.jar:na] at com.aliba.原创 2021-08-08 18:11:46 · 9505 阅读 · 2 评论 -
查看Zookeeper状态时发生的问题: Error contacting service. It is probably not running
一般这种情况我们关闭防火墙即可关闭防火墙systemctl stop firewalld禁止防火墙开机启动systemctl disable firewalld重新查看一下zookeeper状态,已经被选为leader原创 2021-07-25 19:35:58 · 123 阅读 · 0 评论 -
windows下无法修改hosts文件的解决办法
hosts文件路径:C:\Windows\System32\drivers\etc1.方法一使用管理员身份运行点击左上角文件,选择以管理员身份打开命令窗口输入 notepad hosts即可打开文件2.方法二右键点击hosts文件,点击属性,选择安全一栏选择自己当前使用的用户,我这里使用的是Users。点击编辑。设置自己需要的权限,保存即可。...原创 2021-07-24 17:05:08 · 536 阅读 · 2 评论 -
Linux启动RabbitMQ出现错误:ERROR: epmd error for host 192: badarg (unknown POSIX error)
启动RabbitMQ失败的原因[root@192 sbin]# systemctl start rabbitmq-server.serviceJob for rabbitmq-server.service failed because the control process exited with error code. See "systemctl status rabbitmq-server.service" and "journalctl -xe" for details.[root@192 s原创 2021-07-14 17:55:54 · 1832 阅读 · 0 评论