大聪明397 2021-06-03 17:38 采纳率: 100%
浏览 317
已结题

求助:IDEA2021.1运行springboot项目报错

第一个是tomcat启动报错:org.springframework.boot.web.embedded.tomcat.TomcatStarter","method_name":"onStartup","code_line":61,"message":"Error starting Tomcat context. Exception: org.springframework.beans.factory.UnsatisfiedDependencyException. Message: Error creating bean with name 'getUserFilter' defined in class path resource [com/weimob/test/performance/config/FilterConfig.class]: Unsatisfied dependency expressed through method 'getUserFilter' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'authorizationService': Unsatisfied dependency expressed through field 'userDao'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userDao': Unsatisfied dependency expressed through field 'baseMapper'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.weimob.test.performance.mapper.base.BaseMapper<com.weimob.test.performance.entity.Users>' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}"}
第二个是:

org.springframework.boot.diagnostics.LoggingFailureAnalysisReporter","method_name":"report","code_line":40,"message":"\r\n\r\n***************************\r\nAPPLICATION FAILED TO START\r\n***************************\r\n\r\nDescription:\r\n\r\nField baseMapper in com.weimob.test.performance.dao.base.BaseDao required a bean of type 'com.weimob.test.performance.mapper.base.BaseMapper' that could not be found.\r\n\r\n\r\nAction:\r\n\r\nConsider defining a bean of type 'com.weimob.test.performance.mapper.base.BaseMapper' in your configuration.\r\n"}
 

  • 写回答

3条回答 默认 最新

  • 云丶言 2021-06-03 17:42
    关注

    你的UserDao有没有加上spring的注解?

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

悬赏问题

  • ¥15 网络科学导论,网络控制
  • ¥100 安卓tv程序连接SQLSERVER2008问题
  • ¥15 metadata提取的PDF元数据,如何转换为一个Excel
  • ¥15 关于arduino编程toCharArray()函数的使用
  • ¥100 vc++混合CEF采用CLR方式编译报错
  • ¥15 coze 的插件输入飞书多维表格 app_token 后一直显示错误,如何解决?
  • ¥15 vite+vue3+plyr播放本地public文件夹下视频无法加载
  • ¥15 c#逐行读取txt文本,但是每一行里面数据之间空格数量不同
  • ¥50 如何openEuler 22.03上安装配置drbd
  • ¥20 ING91680C BLE5.3 芯片怎么实现串口收发数据