Action:
Consider defining a bean of type ‘com.xxx.dao.EntFileDao’ in your configuration.
由于springBoot启动时,没有扫描到com.xxx.dao.EntFileDao ,而在com.xxx.serviceImpl.EntFileServiceImpl中又使用了@autowired
private EnfileDao entFileDao进行装配,所以会发现错误,说没有定义。此时需要在springBoot的启动类上,加个注解:@MapperScan(“持久层路径”),这样就会扫描到com.xxx.dao.EntFileDao了。