Skip to content
UdemyJava Spring FrameworkPaid courseAll LevelsCertificate

Spring Security Core: Beginner to Guru (Udemy.com)

Learn how to use Spring Security to Secure Your Spring Framework Applications

Created by: John Thompson

Last updated August 2026

icon
What you will learn

  • How to Secure Applications using Spring Security
  • How to Protect Against Common Web Security Vulnerabilities (OWASP)
  • Use Spring Security to Authenticate Application Users
  • Use Spring Security to Authorize User Actions
  • Password Management
  • Best Practices for Limiting User Access
  • Use Test Driven Development to Test User Access

How it compares

Against the other 101 rated Udemy courses in Java Spring Framework on CourseDuck:

  • Rating4.5 out of 5higher than 50% of them
  • Reviews1,021#65 of 102 by number of reviews
  • Length13.2 hourslonger than 59% of them
  • Last updatedAugust 2026more recently than 75% of them

icon
Course Description

Seems like everyday you can find a news story about a security breach, which can be devastating to companies.

Clearly, security is a very important topic.

The Spring Framework is the most popular Java framework for building cloud scale applications.

Spring Security provides you all the tools you need to secure your Java application.

Application security is much more than allowing access after checking a user name and password. You will learn how to limit what application features a user may or may not see. And also, how to limit what data a user may or may not see.

This course focuses on the core fundamentals of Spring Security.

Central to Spring Security is the process of Authentication. This is the process of establishing a user's identity. 

Once a user's identity is established, the process of Authorization is used to allow the user to access specific actions and features of an application.

Spring Security has a very robust toolset for Authentication and Authorization.

Inside this course, you will master both.

You will start the course by learning how to leverage the auto-configuration capabilities of Spring Boot to quickly secure a web application using HTTP Basic Authentication.

Then, you'll be lead through a series of exercises, to replace and customize the default Spring Boot auto-configuration.

Through this process, you will understand the Spring Boot hidden 'magic', and learn how to master the configuration of Spring Security. 

You will be working with a typical Spring Boot Web Application. The application mimics a robust monolithic application - with web pages and RESTful endpoints. This allows us to explore the unique security aspects unique to both web applications and RESTFul APIs.

You may notice there is not a dedicated section of the course about Testing Spring Security. This is because testing is done throughout the course.

Test Driven Development (TDD) is widely considered a best practice in software engineering.

As we explore the features of Spring Security, we will follow a TDD approach.

We will first write a failing test using JUnit 5, Mockito, and Spring MockMVC, then complete the lesson objective to get a passing test.

You will see some great examples of testing Spring with JUnit 5. However, it is recommended you have prior experience with JUnit 5.

In this course, you will learn:

  • HTTP Basic Authentication with Spring Security

  • Spring Security Java Configuration

  • Using an In-Memory Authentication Provider

  • Using Spring Security for Password Management

  • Best Practices for Password Security

  • Creating Custom Authentication Filters

  • Using a database with Spring Data JPA for Authentication

  • User Roles with Spring Security

  • User Authorities with Spring Security

  • Multitenancy Security

  • Configure Spring Security for CSRF Protection

  • Create a custom login form

  • Using Remember Me

  • How to lock out users after too many failed attempts

  • How to unlock accounts automatically after a period of time

  • CORS with Spring Security

Course Extra - IntelliJ IDEA Ultimate

Students enrolling in the course can receive a free 120 day trial license to IntelliJ IDEA Ultimate! Get hands on experience using the Java IDE preferred by Spring Framework professionals! 

Course Extra - Access to a Private Slack Community

You're not just enrolling in a course --> You are joining a community learning about Spring Security.

With your enrollment to the course, you can access an exclusive Slack community. Get help from the instructor and other Spring Framework Gurus from around the world - in real time! This community is only available to students enrolled in this course. 

With your enrollment, you can join this community of awesome gurus!

Closed Captioning / Subtitles

Closed captioning in English is available for all course videos!

PDF Downloads

All keynote presentations are available for you to download as PDFs.

Lifetime Access

When you purchase this course, you will receive lifetime access! You can login anytime from anywhere to access the course content.

No Risk - Money Back Guarantee 

You can buy this course with no risk. If you are unhappy with the course, for any reason, you can get a complete refund. The course has a 30 day Money Back Guarantee.


Enroll today and start learning Spring Security! 

icon
Udemy Discount

The discount is applied through our link. Open the course from here and Udemy's current promotional price is applied at checkout on most courses, no code to type.

Some courses are excluded from Udemy's promotions. If the price does not drop, clear your browser cookies and use the button again.

icon
Instructor Details

John Thompson

Hi. I'm John.

I've been in the IT industry for over 25 years. Today, I specialize mainly in Java, the most successful and widely known programming language in use today. I also specialize with the Spring Framework, which the most popular open source application framework for building enterprise class applications on the Java platform. Just some of the organizations I've worked with include Visa, Kohls, Federal Home Loan Bank, and Belk Department Stores.

Through the courses I'm providing, I hope to leverage my years of experience to accelerate your learning of the Spring Framework. I'm not going to lie to you. The Spring Framework is a big framework. The environment for enterprise Java is even bigger. If you're new to Java, you have a lot to learn. I hope through the content on this web site I can accelerate your education of the Java and Spring landscape.

icon
More courses by John Thompson

$17.99

$18.99

$84.99

$84.99

$11.99

$13.99

icon
More Java Spring Framework courses

$84.99

$84.99

$12.99

$11.99

$10.99

$94.99

icon
Reviews

4.5

1,021 ratings on Udemy

Select a bar to show only those reviews.Select the bar again to show every rating.

By Rich Popik on 8/20/2025

I enjoyed this course. I found it a big challenge as I updated everything to current versions of the libraries which in some cases changed considerably. But John's explanations of what he was teaching was a great road map for my studies. I really liked the in depth explanations, and digging into aspects of spring security I was only marginally aware of before this course.

By George Sargent on 12/20/2024

I liked most of this course. Especially the coverage on 2FA and RememberMe. The principles taught were sound. I did have some difficulties getting this to work on Spring-Boot-3. The sample repository was still using version 2. This caused a number of bugs that needed to be addressed while working alongside the project. Getting the bugs wrinkled out on my own definitely helped my understanding of things. But it added a lot more time in the course than I had expected. Other than the outdated Spring version, the only other wishlist items not fulfilled were the lack of any coverage of JWT and OAuth. I feel these are vital topics for security nowadays, and there was no coverage of them at all. Hopefully, this course will be updated at some later date to cover these topics.

By Richard King on 8/26/2023

This is a great introduction to Spring Security, covering a wide range of topics to bring some familiarity to developers who can take it farther on their own. A student, after taking this class, will have a *much* easier time reading spring docs and other sources discussing Spring Security. There will be some catching up to do as this (as of this writing) is using Spring Framework 5.3.2 and the Spring Framework is on 6.x and actually has sections in their documentation for preparing for the move to version 7. Nevertheless, this course is well worth it for the familiarity it brings with the concepts and how the pieces impact each other.

By Dimitar Ganchev on 6/1/2023

This course on Udemy is exceptional! It is well-structured, presented with excellence, and provides a thorough understanding of the subject matter. The instructor's knowledge and teaching style are commendable. I am particularly interested in learning more about OAuth2(Spring OAuth2 authorization server, client-server, and resource server), and JWT token. I believe this course would be an excellent resource for that. I highly recommend this course to anyone seeking to gain valuable skills in the topic and beyond

By Doug Kanoza on 12/3/2022

I'll echo what a lot of other students are saying here - he talks fast, swallows some words, and bombards you with a ton of information. In a classroom setting, these would be deal breakers, but in a video that you can rewatch, rewind, or pause, it's not a problem. He clearly knows his stuff. I appreciate that he leaves the errors in there and uses them as a teaching moment. I got everything I needed (and more) from this course, and will be taking more from his catalog in the future. All in all, I really don't think there's anything better out there.

By Marcus Blackhall on 6/14/2022

John explains the principles so well. I needed a good grounding in setting up security in Spring and and after this course that's been achieved. As with other courses John does he always adds in extra useful stuff too. Like the use of the warrenstrange google auth library and the use of a spring generic filter.

By Andrei M on 10/24/2021

John is a very skilled Java developer, I learned new things about this branch of Spring's big environment. What I enjoyed the most was the 2fa and locking timestamps for unsuccessful attempts. Definitely recommend this course.

By Alessandro Arosio on 1/3/2021

This course is simply outstanding. It gives you a very strong understanding of Spring Security, from the basics to more advanced stuff. You need a big of understanding of Java / Spring framework before doing this course though. I highly recommend this course. Believe me, I started doing John's courses around 4 years ago, and not only I managed to secure a job as a junior developer, but today I have a senior role, leading 2 projects and training junior/mid level, sometimes seniors and tech lead. If you're new, start with Spring Framework 5, then an essential course on Testing using Junit and Mockito. This is already a LOT. Then you can either dive in this course, or his masterpiece (imho): Spring Boot Microservices. Also it would help the course on Maven and Docker. Trust a fellow student: John's courses won't disappoint you and can (to be read as: WILL) boost your career progression and knowledge. Question for the teacher: John is there any ETA for the final sections?

By Ergin Sarikaya on 12/22/2020

Oauth2 (Preferably with KeyCloak), SAML2 and a similar implementation with Reactive (webflux) would be nice. Also best practives for communiting between backend securiy api and single page web pages (ReactJs) - which one is better in terms of security? Is it JWT, is it PASETO, is it session cookie based?) Security implementation with webflux is a bit similar but since it is relatively new, it is very fragile. It would be gret to get an example from an expert.

By Shashikanth on 11/30/2020

This is an Excellent Course. Course gives you all Information about Security and shows you how to implement Security using Spring. I have the following recommendations for the course In our Organization, authentication is done through another application and a token is given to us(Spring Application) Authentication application does Two Factor Authentication. I think in most organizations, Spring may not do Two Factor Authentication. Most developers may not need this, I suggest giving this information at the beginning of this section, so that developers can skip this section. I suggest adding another section to explain how token can be validated from another application.

Showing all 10 reviews on CourseDuck

Read all 1,021 reviews on Udemy

icon
Quality Score

No CourseDuck member has rated this course yet. Taken it? Give each part a thumbs up or down.

Content Quality
/
Video Quality
/
Qualified Instructor
/
Course Pace
/
Course Depth & Coverage
/

Overall Score : 90 / 100