
Consider defining a bean of type 'com.hushunlin.utills.RedisUtil' in your configuration.
报错代码如下:
APPLICATION FAILED TO START
Description:
Field redisUtil in com.hsl.mp.handler.MsgHandler required a bean of type ‘com.hushunlin.utills.RedisUtil’ that could not be found.
Action:
Consider defining a bean of type ‘com.hushunlin.utills.RedisUtil’ in your configuration.
Process finished with exit code 1
解决办法:
com.hsl.mp.handler.MsgHandler在此类里面加一个指定扫包@ComponentScan(basePackages = {“com.hushunlin.utills”})
👁️ 阅读量:0
© 版权声明:本文《Consider defining a bean of type 'com.hushunlin.utills.RedisUtil' in your configuration.》内容均为本站精心整理或网友自愿分享,如需转载请注明原文出处:https://www.zastudy.cn/wen/1686550078a289248.html。