overwrite. If you look at the priority load
One of springboot's annotations called @ConditionalOnMissingBean, which is available on the redisTemplate configuration class, A custom redisTemplate configuration class can also add this annotation. Why does the custom redisTemplate have to replace the redisTemplate that comes with springboot instead of the custom plate that comes with springboot?
0 Answer
springboot Custom redisTemplate provides more advanced features such as support for serialization and deserialization, support for custom caching policies, support for caching components, and support for caching components. Support flexible cache management, these functions are the system's own redisTemplate does not have, so it can replace the system's own redisTemplate.
the reason to be overbearing that
这家伙很懒,什么都没留下...