move user endpoint (#3730)
* move user endpoint * formatting * formatting * formatting * formatting * change url name * Update PersonInfoController.java * Update PersonInfoController.java
This commit is contained in:
committed by
Eugen
parent
76d7e9c49b
commit
07111d1edc
+2
-2
@@ -19,10 +19,10 @@ public class CloudSiteController {
|
||||
return "Hello From Baeldung!";
|
||||
}
|
||||
|
||||
@GetMapping("/person")
|
||||
@GetMapping("/personInfo")
|
||||
public ModelAndView person() {
|
||||
ModelAndView mav = new ModelAndView("personinfo");
|
||||
String personResourceUrl = "http://localhost:9000/personResource";
|
||||
String personResourceUrl = "http://localhost:9000/person";
|
||||
mav.addObject("person", restOperations.getForObject(personResourceUrl, String.class));
|
||||
return mav;
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ security:
|
||||
clientId: authserver
|
||||
clientSecret: passwordforauthserver
|
||||
resource:
|
||||
userInfoUri: http://localhost:7070/authserver/user
|
||||
userInfoUri: http://localhost:9000/user
|
||||
|
||||
person:
|
||||
url: http://localhost:9000/person
|
||||
@@ -27,7 +27,7 @@ zuul:
|
||||
url: http://localhost:9000
|
||||
user:
|
||||
path: /user/**
|
||||
url: http://localhost:7070/authserver/user
|
||||
url: http://localhost:9000/user
|
||||
|
||||
# Make sure the OAuth2 token is only relayed when using the internal API,
|
||||
# do not pass any authentication to the external API
|
||||
|
||||
Reference in New Issue
Block a user