Merge branch 'master' into JAVA-23096

This commit is contained in:
Kasra Madadipouya
2023-08-28 17:17:52 +02:00
committed by GitHub
60 changed files with 25 additions and 90 deletions
@@ -172,7 +172,6 @@
<properties>
<!-- Maven plugins -->
<maven-war-plugin.version>3.2.2</maven-war-plugin.version>
<cargo-maven2-plugin.version>1.6.1</cargo-maven2-plugin.version>
<javax.annotation-api.version>1.3.2</javax.annotation-api.version>
</properties>
@@ -8,9 +8,9 @@ import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
@Controller
public class SecurityController3 {
public class GetUserWithAuthenticationController {
public SecurityController3() {
public GetUserWithAuthenticationController() {
super();
}
@@ -6,7 +6,7 @@ import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class SecurityController4 {
public class GetUserWithAuthenticationPrincipalAnnotationController {
@GetMapping("/user")
public String getUser(@AuthenticationPrincipal UserDetails userDetails) {
@@ -8,9 +8,9 @@ import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
@Controller
public class SecurityController {
public class GetUserWithPrincipalController {
public SecurityController() {
public GetUserWithPrincipalController() {
super();
}
@@ -11,12 +11,12 @@ import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
@Controller
public class SecurityController1 {
public class GetUserWithSecurityContextHolderController {
@Autowired
private ApplicationEventPublisher eventPublisher;
public SecurityController1() {
public GetUserWithSecurityContextHolderController() {
super();
}