SpringBoot does not automatically load Shiro configuration (No bean of type 'org.apache.shiro.realm.Realm' found)

If you are building a microservice project, you must pay attention 

The file hierarchy of SystemApplication is consistent with the file hierarchy of beans

If it is inconsistent, the bean cannot be scanned

SpringBoot's default package scanning path

 same reason

 

 Self-built microservice module fails to start, reporting No bean of type 'org.apache.shiro.realm.Realm' found. Issue #I3NMK9 JEECG/jeecg-boot - Gitee.com

Guess you like

Origin blog.csdn.net/xss12322/article/details/128728056