[英]“Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled” when run Spring Boot project
[英]Spring boot : Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled
我是 Java 和 Spring 啟動的新手,我想創建一個程序來顯示 HTML 頁面,當我使用它時:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
</dependency>
一切都很好,我首先有登錄頁面,然后是我創建的 HTML 頁面
但是當我刪除安全性的依賴時(因為我不需要它,我想直接顯示我的 HTML 頁面),它給了我一個錯誤
代替
<artifactId>spring-boot-starter-security</artifactId>
利用
<artifactId>spring-boot-starter-web</artifactId>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.