LoginSignup
8
7

More than 5 years have passed since last update.

「はじめてのSpring Boot」を最新版1.3.5で試す時の注意点

Posted at

はじめてのSpring Boot―「Spring Framework」で簡単Javaアプリ開発 を1.3.5で試す時の個人的なメモです。

Spring Security

バージョンが上がっているので、ThymeleafのSpring Securityプラグインもバージョンが上がっている。
参考:Spring Boot 1.3 リリースノート和訳

書籍に書かれている内容

※この記述のままでも、要素が必須というエラーになる。

<dependency>
    <groupId>org.thymeleaf.extras</groupId>
    <artifactId>thymeleaf-extras-springsecurity3</artifactId>
</dependency>

以下に書き換える。

<dependency>
    <groupId>org.thymeleaf.extras</groupId>
    <artifactId>thymeleaf-extras-springsecurity4</artifactId>
</dependency>

書き換えないと、3.5章で書かれているログインユーザー名を出してみよう、のところで"dukeさんログイン中。"と出てしまう。

8
7
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
8
7