In this article, we will discuss on 'Spring Security Annotations' with examples. Obviously, these annotations can be used in a Spring Boot project as well. These annotations play a crucial role in creating a web application in Spring Boot. If you want to learn all annotations which are generally used in a Spring Boot Project, kindly visit our article 'Spring Boot Annotations with Examples'. Let's discuss about 'Spring Security Annotations' here only. First of all, in order to use Security related annotations in your Spring Boot project, you need to add security starter dependency. If you created a project using STS (Spring Tool Suite), you have to select 'Spring Security' starter or else add the following dependency in your pom.xml file. <dependency>
You are here
Home > Posts tagged "@preauthorize vs @secured"