控制台报错:
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘dataSourceInitializerPostProcessor’: Unsatisfied dependency expressed through field ‘beanFactory’;
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘shiroFilterFactoryBean’ defined in class path resource [com/wantl/shiro/config/ShiroConfig.class]:
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘securityManager’ defined in class path resource [com/wantl/shiro/config/ShiroConfig.class]:
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.shiro.mgt.SecurityManager]:
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘myShiroRealm’:
解决方法:在Springboot启动类上面添加注解@MapperScan("com.wantl.shiro.mapper")