大聪明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条)

报告相同问题?

悬赏问题

  • ¥30 模拟电路 logisim
  • ¥15 PVE8.2.7无法成功使用a5000的vGPU,什么原因
  • ¥15 is not in the mmseg::model registry。报错,模型注册表找不到自定义模块。
  • ¥15 安装quartus II18.1时弹出此error,怎么解决?
  • ¥15 keil官网下载psn序列号在哪
  • ¥15 想用adb命令做一个通话软件,播放录音
  • ¥30 Pytorch深度学习服务器跑不通问题解决?
  • ¥15 部分客户订单定位有误的问题
  • ¥15 如何在maya程序中利用python编写领子和褶裥的模型的方法
  • ¥15 Bug traq 数据包 大概什么价