报错代码如下:


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

更多推荐

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