While doing loadtesting on our application I noticed that if you use @Transactional and @Cacheable annotions that hibernate always creates a database transaction. Is there an ea
You need to change relative order of @Transactional and @Cacheable aspects.
@Transactional
@Cacheable
It can be configured using order attribute of and . See 8.2.4.7 Advice ordering for the meaning of order values.
order