ITPub博客

首页 > 应用开发 > > Spring Boot 一个DAO报错了

Spring Boot 一个DAO报错了

作者:markriver 时间:2019-08-09 15:40:01 0 删除 编辑

下面是报错信息

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

我其他的DAO都没有报错呀!!!

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/818/viewspace-3164694/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2020-07-03

  • 博文量
    502
  • 访问量
    18492