查这报错没什么用的,得看下面的报错,Error starting ApplicationContext. To display the conditions report re-run your application with ‘debug’ enabled.往往代表开启了某个框架或者服务但又没有真的进行配置。
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2022-08-29 19:59:37.004 ERROR 14640 --- [ restartedMain] o.s.b.d.LoggingFailureAnalysisReporter :
***************************
APPLICATION FAILED TO START
***************************
Description:
No bean of type 'org.apache.shiro.realm.Realm' found.
Action:
Please create bean of type 'Realm' or add a shiro.ini in the root classpath (src/main/resources/shiro.ini) or in the META-INF folder (src/main/resources/META-INF/shiro.ini).
注意力应该放在
- Description: No bean of type ‘org.apache.shiro.realm.Realm’ found.
Action: Please create bean of type ‘Realm’ or add a shiro.ini in the
root classpath (src/main/resources/shiro.ini) or in the META-INF
folder (src/main/resources/META-INF/shiro.ini).
什么错误呢,错误原因是pom依赖文件中导入了shiro依赖,但是没有对其进行配置,将shiro依赖注释掉之后即可正常启动。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)