这个错误是因为在 'com.medical.hospital.probation.controller.HosUserClassroomController' 中的 'sysHosDisService' 字段使用了 '@Autowired' 注解,但是系统中没有找到对应的类型为 'com.medical.hospital.auth.service.SysHosDisService' 的 bean。

解决方法是在配置文件中定义一个对应的 bean。

Spring Boot 错误: NoSuchBeanDefinitionException: 找不到 com.medical.hospital.auth.service.SysHosDisService bean

原文地址: https://www.cveoy.top/t/topic/nTg7 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录