Error starting ApplicationContext. To display the conditions report re-run your application with ‘de

查这报错没什么用的,得看下面的报错,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依赖注释掉之后即可正常启动。


版权声明:本文为z2431435原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。