@Component (把普通pojo实例化到spring容器中,相当于配置文件中的<bean id="" class="">)
SpringBoot 在注入文件失败时,可能实例化类缺少@Component
Description:
Field userEntityMapper in com.xxx.xxx.service.UserService required a bean of type 'com.xxx.xxx.dao.UserEntityMapper' that could not be found.
Action:
Consider defining a bean of type 'com.xxx.xxx.dao.UserEntityMapper' in your configuration.