LoginSignup
4
0

More than 3 years have passed since last update.

localhost:8080で表示されるログイン画面

Posted at

原因の正体はSpringSecurity

SpringBootを使ってWEBアプリケーションを開発するとき、localhost:8080で実際に画面を表示したりする。そのとき、想定していたhtmlファイルに遷移せずに謎のログインページに飛ばされた。

調べてみると、どうやらSpringSecurityを使用する場合に出てくるものみたい。

対応策

デフォルト設定であればユーザー名は`"user"`、SpringBoot起動時にコンソールに表示されるパスワードを入力してあげるとログインして、目的のページにたどり着くみたい。

※もしSpringSecurityを使わないのであれば、依存関係を削除すればOK!

参考:Spring Boot project shows the login page

4
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
0