简短地写了部分代码之后。。。
在application.yml中添加
就会报错org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'appraisalDetailController': Unsatisfied dependency expressed through field 'appraisalDetailService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'appraisalDetailService': Unsatisfied dependency expressed through field 'appraisalDetailMapper'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'appraisalDetailMapper' defined in file [D:\mes-system\measurement\target\classes\xgzx\measurement\mapper\AppraisalDetailMapper.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory'; 。。。后面还有一大串
删除掉这一段配置,就不会报错,挺有意思,不过还没解决,先记录一下
现在是十分钟后了,问题解决了,因为有一个mapper.xml文件里多了一个分号;还有一个Integer写成了Integet