方法启用定时刷新后spring aop 失效了
Open
- Dominant language
- Java
- Stars
- 5.6k
- Forks
- 1.1k
- PR merge metrics
- No merged PRs in 30d
Description
大佬请教一下,如题,我在service 层的方法中启用了定时刷新。项目用了spring AOP 做了个动态数据源的读写分离。对于selectXXX的service 层方法做了拦截让它去从库查询,但是定时刷新调用的selectXXX的servie方法却不走AOP, 直接用了默认的写库。如何在定时刷新的方法仍然走AOP
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the scheduled refresh path in a service method using Spring AOP and a dynamic read/write data source. Compare the scheduled invocation with the normal selectXXX service call, then document the expected data-source routing and verify it with a focused test. The issue names no files or existing tests, so repository exploration is required.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100