- 博客(3)
- 收藏
- 关注
原创 mysql分页使用order by + limit 数据重复坑
不经意发现的一个问题:mysql查询数据时使用 order by 和 limit 导致查询数据重复。来源项目里的一个业务,查询自己的历史记录,每次查一条,先去数据库找到对应主键ID,再去缓存里取数据:语句A:select id from example_table order by update_time desc limit 2,1;语句B:select id from example_table order by update_time desc limit 3,1;日志一打,发现A和B语句查
2022-05-12 17:21:41
674
原创 记录一个坑: Error creating bean with name ‘eurekaAutoServiceRegistration‘
org.springframework.beans.factory.BeanCreationNotAllowedException: Error creating bean with name ‘eurekaAutoServiceRegistration’: Singleton bean creation not allowed while singletons of this factory are in destruction (Do not request a bean from a BeanFact
2020-10-22 16:11:35
519
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人