Using Spring cache annotation in multiple modules

前端 未结 5 1949
小蘑菇
小蘑菇 2020-12-23 20:56

I have a util module that produces a jar to be used in other applications. I\'d like this module to use caching and would prefer to use Spring\'s annotation-driven

5条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-23 21:13

    Use this class: http://static.springsource.org/autorepo/docs/spring/3.2.0.M1/api/org/springframework/cache/support/CompositeCacheManager.html like this:

    
    
    
        
            
                
                
            
        
        
    
    

提交回复
热议问题