# 开发中的各种疑难杂症问题

## 跨系统的事物一致性问题

## Spring的AOP代理

[Spring AOP——Spring 中面向切面编程 - SharpCJ - 博客园](https://www.cnblogs.com/joy99/p/10941543.html)\
[Spring AOP：内部调用陷阱](https://zhewuzhou.github.io/2018/09/01/Spring_AOP_Trap/)\
[透过现象看原理：详解Spring中Bean的this调用导致AOP失效的原因 - 光闪的个人空间 - OSCHINA](https://my.oschina.net/guangshan/blog/1807721)

## 业务层数据过滤带来的分页问题

[分页场景下、查询数据后排除部分内容导致不足一页的 问题怎么解决？](https://www.v2ex.com/t/603295)

核心：

1. 取出一部分数据过滤后，不足一页再次取数据
2. 记录上一次查询的cursor位置，下一次查询时客户端范围该位置从该位置查询下一页，也就是每次只能从第一页开始查询，且不可以跳页


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://book.rizon.top/zhuan-ti/yi-nan-za-zheng.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
