UnsatisfiedDependencyException: Error creating bean with name ‘personRecordServiceImpl’:…
原因:
未加@Service注解
未加@Mapper注解
未加@MapperScan(“xx.xx.xx”)注解
mvcConfig继承类出错
解决方法:
在service接口或实现类上添加@Service注解
在mapper接口添加@Mapper注解
在MybatisPlusConfig类上加@MapperScan(“xx.xx.xx”)注解
MvcConfig 继承WebMvcConfigurationSupport类,而非实现WebMvcConfigurer类