Description:
Field classHourRecordDAO in com.temp.service.export.impl.DataReportServiceImpl required a bean of type 'com.temp.dao.finance.ClassHourRecordDAO' that could not be found.
The injection point has the following annotations:
- @org.springframework.beans.factory.annotation.Autowired(required=true)
@SpringBootApplication
@EnableTransactionManagement
//
public class Application {
public static void main(String[] args) {
//star
SpringApplication.run(Application.class,args);
}
}
com.temp.dao.finance.ClassHourRecordDAO这个的依赖之类的不对,可以先屏蔽下这个,然后根据异常栈信息定位下错误
com.temp.service.export.impl.DataReportServiceImpl 下 com.temp.dao.finance.ClassHourRecordDAO 没找到,看看你的注解
启动类上加入:@MapperScan(basePackages = { "com.temp.dao.finance" })
ClassHourRecordDAO加注解了吗?
会不会是这个dao没注册到Spring容器中