mirror of
https://github.com/OtusTeam/Spring.git
synced 2026-11-18 20:07:12 +00:00
How in my project
This commit is contained in:
1 parent
5dc2db6d65
commit
573f241f47
2 files changed
+10
-4
No files matched your search
@@ -2,11 +2,7 @@ package ru.otus.spring;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
|
||||
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
|
||||
|
||||
@EnableWebSecurity
|
||||
@EnableGlobalMethodSecurity(securedEnabled = true, prePostEnabled = true)
|
||||
@SpringBootApplication
|
||||
public class SpringSecurityAuthorization {
|
||||
|
||||
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
package ru.otus.spring.security;
|
||||
|
||||
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
|
||||
|
||||
@EnableGlobalMethodSecurity(
|
||||
securedEnabled = true,
|
||||
prePostEnabled = true
|
||||
)
|
||||
public class MethodSecurityConfiguration {
|
||||
}
|
||||
Reference in new issue
Block a user