Proxies & Pitfalls

Preview

Spring's most famous "wait, why isn't this working?" bugs almost all trace back to proxies. Features like @Transactional, @Async, @Cacheable, and @Secured are implemented by wrapping your bean in a proxy — and a proxy can only intercept calls that go through it.

Sign in to read the full chapter.

Checking access…