目錄
2、Euruka註冊服務時SessionCreationPolicy ClassNotFoundException
1、actuator訪問401
actuator通過此模塊,監控應用,收集指標,理解數據庫傳輸和狀態這些功能時變得不瑣碎。
訪問401,Unauthorized。application.properties加上以下配置即可。
management.security.enabled=false
2、Euruka註冊服務時SessionCreationPolicy ClassNotFoundException
Euruka是客戶端服務發現允許服務去發現並且與其他服務交流但不是通過硬編碼主機名和端口。
我的最簡單的hello服務本來想通過註冊到Euruka服務端,卻拋出了java.lang.ClassNotFoundException: org.springframework.security.config.http.SessionCreationPolicy。後面查看了springboot項目的issue之後,發現
和我actuator加的配置是有關的。
application.properties移除以下配置即可。
management.security.enabled=false