码迷,mamicode.com
首页 > 系统相关 > 详细

A component required a bean named 'cacheManager' that could not be found.

时间:2020-02-16 23:24:51      阅读:271      评论:0      收藏:0      [点我收藏+]

标签:tar   sid   cat   cache   not   man   ret   span   size   

***************************
APPLICATION FAILED TO START
***************************

Description:

A component required a bean named ‘cacheManager‘ that could not be found.


Action:

Consider defining a bean named ‘cacheManager‘ in your configuration.

在使用springboot集成hazelcast时候,启动时候报错。

需要在启动类中加入一个bean

    @Bean
    public CacheManager cacheManager() {
        return new HazelcastCacheManager();
    }

这样启动后,可以进行正常启动

 

A component required a bean named 'cacheManager' that could not be found.

标签:tar   sid   cat   cache   not   man   ret   span   size   

原文地址:https://www.cnblogs.com/qingmuchuanqi48/p/12319393.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!