Security
Last updated
Was this helpful?
Last updated
Was this helpful?
SpringBoot Spring Security 基本使用及個性化登入配置詳解()
()
Spring Security-結合RestfulAPI的設計()
Spring Boot(四)之使用JWT和Spring Security保護REST API ()
build.gradle 的 dependencies 中加入
一旦啟用 Security,連線到頁面,就會被導址到默認的 /login
去做登入的動作
預設帳號為:user
密碼為每次服務啟動時隨機產生 (參考下圖)
那如果不希望每次都隨機密碼,到底要怎麼去做設定呢? 可以去 設定檔 設置默認的使用者、密碼 (roles 我還沒弄清楚)。