Modify your constructor :
@Autowired public StarshipService() { this.webClient= WebClient.builder().baseUrl("https://www.swapi.tech/api").build(); }