admin管理员组

文章数量:1794759

Consider defining a bean of type 'com.hushunlin.utills.RedisUtil' in your configuration.

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”})

本文标签: typeampdefiningbeanRedisUtil