Skip to content
Snippets Groups Projects

Changed request url from localhost to hostname of the db service.

Merged Artemiza-Mihaela DOSPINESCU requested to merge docker_swarm_service_auth into main
6 files
+ 5
4
Compare changes
  • Side-by-side
  • Inline
Files
6
@@ -28,7 +28,7 @@ public class CustomUserDetailsService implements UserDetailsService {
public UserDetails loadUserByUsername(String username) throws UsernameNotFoundException {
HttpClient httpClient = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("http://localhost:8081/users/username"))
.uri(URI.create("http://dbinteraction:8081/users/username"))
.GET()
.build();
try {
Loading