Yes, it works fine.
You need <security:global-method-security pre-post-annotations="enabled" />
in ...-servlet.xml
. It also requires CGLIB proxies, so either your controllers shouldn’t have interfaces, or you should use proxy-target-class = true
.
More Related Contents:
- Spring Security : Multiple HTTP Config not working
- Filter invoke twice when register as Spring bean
- How to get active user’s UserDetails
- When using Spring Security, what is the proper way to obtain current username (i.e. SecurityContext) information in a bean?
- How to disable spring security for particular url
- Difference between Role and GrantedAuthority in Spring Security
- How to manually set an authenticated user in Spring Security / SpringMVC
- Why we shouldn’t make a Spring MVC controller @Transactional?
- Disable Spring Security for OPTIONS Http Method
- How to enable HTTP response caching in Spring Boot
- RESTful Authentication via Spring
- HttpSecurity, WebSecurity and AuthenticationManagerBuilder
- In Spring MVC, how can I set the mime type header when using @ResponseBody
- How to find all controllers in Spring MVC?
- How to get the current logged in user object from spring security?
- Spring webSecurity.ignoring() doesn’t ignore custom filter
- Spring security does not allow CSS or JS resources to be loaded
- how to display custom error message in jsp for spring security auth exception
- spring web, security + web.xml + mvc dispatcher + Bean is created twice
- How to apply Spring Security filter only on secured endpoints?
- Spring Security HTTP Basic for RESTFul and FormLogin (Cookies) for web – Annotations
- Spring security added prefix “ROLE_” to all roles name?
- Why this Spring application with java-based configuration don’t work properly
- Spring REST security – Secure different URLs differently
- Custom Authentication Manager with Spring Security and Java Configuration
- Spring MVC type conversion : PropertyEditor or Converter?
- How to prevent parameter binding from interpreting commas in Spring 3.0.5?
- Configure ViewResolver with Spring Boot and annotations gives No mapping found for HTTP request with URI error
- What are annotations and how do they actually work for frameworks like Spring?
- Spring MVC: How to modify json response sent from controller