Skip to content
Mkyong.com
Mkyong.com
  • Development Service
  • Spring Boot
  • Java 8
  • Contact

custom login

Spring Boot + Spring Security + Thymeleaf example

May 4, 2017 by mkyong

A Spring Boot Thymeleaf example, uses Spring Security to protect path /admin and /user Technologies used : Spring Boot 1.5.3.RELEASE Spring 4.3.8.RELEASE Spring Security 4.2.2 Thymeleaf 2.1.5.RELEASE Thymeleaf extras Spring Security4 2.1.3 Tomcat Embed 8.5.14 Maven 3 Java 8 1. Project Directory 2. Project Dependencies Declares spring-boot-starter-security, it will get anything you need to develop …

Read more

Categories spring boot Tags custom login, security, spring boot, spring security, template, thymeleaf 61 Comments

Mkyong.com has provided Java and Spring tutorials, guides, and code snippets since 2008. All published articles are simple, easy to understand, and well-tested in our development environment.

Mkyong.com licenses all source code on this website under the MIT License.

Tools
  • Spring Framework
  • Quarkus Framework
  • Micronaut Framework
  • Oracle Java JDK
  • Eclipse Temurin JDK
  • OpenJDK JDK
  • Hibernate ORM
  • Maven Build Tool
  • Gradle Build Tool
  • Tomcat Application Server
  • Docker
Links
  • Spring Guides
  • Docker Hub
  • Maven Central
  • Keep A Changlog
  • Semantic Versioning
  • Hugging Face - Qwen
  • Martin Fowler
About
  • About Us
  • Code License
  • Privacy Policy
  • Terms Of Use
  • Contact Us
© 2026 Mkyong.com - Build with Love.