8
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

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

Posted at

[はじめてのSpring Boot―「Spring Framework」で簡単Javaアプリ開発] (https://www.amazon.co.jp/dp/4777518655/ref=cm_sw_r_tw_dp_YX4AxbFVHMQZA) を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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?