You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Actually @EnableCaching is not really different from @EnableTransactionManagement. The difference really is that the caching use case has more dependencies.
If we add a TransactionManagementConfigurer to that Application, we get the same issue. The solution would be to move the reconciliation in the interceptor instead of doing it through configuration.
The problem is that we really need to defer that after the full initialization of the bean. So the context may start just fine and the first method requiring caching would lead to an exception. This makes the code of the interceptor overcomplicated so I am wondering if that's worth it.
Well in fact, @EnableTransactionManagementis different because it delays the resolution of the default transaction manager as late as possible. This is something we could do for caching as well and it has positive effects on the project referenced in the boot issue.
Uh oh!
There was an error while loading. Please reload this page.
Stéphane Nicoll opened SPR-12336 and commented
See spring-projects/spring-boot#1711
Interesting analysis: https://gist.github.com/dsyer/ebeb25d5afbdd9242cd5.
Affects: 4.1.1
Issue Links:
Referenced from: commits 0e36402, 5aefcc8, e2518e0
The text was updated successfully, but these errors were encountered: