spring boot启动报错:The alias 'Criteria' is already mapped to
程序员文章站
2022-03-07 09:34:07
...
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'authorizeController': Unsatisfied dependency expressed through field 'userService';
解决方法:
错误配置:
mybatis.type-aliases-package=life.majiang.community.model
mybatis.mapper-locations=classpath:mapper/*.xml
将配置文件mybatis.type-aliases-package中的路径改成映射的接口路径mapper
修改路径:
mybatis.type-aliases-package=life.majiang.community.mapper
上一篇: git项目强制与远端同步!!!
下一篇: git 批量删除分支