CacheManager No Bean Found - Not Trying to setup any Cache

后端 未结 4 527
故里飘歌
故里飘歌 2021-02-05 19:02

I\'m getting a no CacheManager bean found... But i have not tried to do anything with CacheManager!

Here\'s my error!

org.springframework.beans.factory.B         


        
4条回答
  •  情话喂你
    2021-02-05 19:47

    Using IntelliJ IDEA v15 I let it create the Spring Context file for my rest servlet then I added the context: and mvc: lines:

    
    
    
        
        
    
    

    I had exactly the same error as the OP. I had no need for Spring caching, but it had added the name space, so to fix it I just removed the namespace (and I needed to add the mvc namespace too), as follows:

    
    
    
        
        
    
    

    I hope this helps.

提交回复
热议问题