springboot2.2.7版本中sec:authorize無效解決

springboot 版本2.2.7.release

在build.gradle中設置thymeleaf-extras-springsecurity爲 compile(‘org.thymeleaf.extras:thymeleaf-extras-springsecurity5’)

同時在html中設置 xmlns:sec=“http://www.thymeleaf.org/thymeleaf-extras-springsecurity5”

詳見https://segmentfault.com/a/1190000021529294

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章