自动注入出现Consider defining a bean of type ‘xxx’ in your configuration问题解决方案

package com.croot.message;
package com.crootmon;

如果message依赖common

扫描的基包就应该是如下

@ComponentScan("com.croot")

更多推荐

spring boot父子模块依赖Consider defining a bean of type ‘xxx‘ in your configuration