I'm not sure what's going on here. I've been building spring apps for years and years and feel like I've just missed something.

I have a spring boot app created through the spring initializer. I created a configuration class like this.

```
@Configuration
public class WfwwebConfiguration {

    @Bean
    public WebClient webClientBean() {
        return new WebClient(MpesaPaymentService.MPESA_HOST, MpesaPaymentService.MPESA_PORT);
    }
}

```

The goal, of course, here is to create my WebClient class myself. The problem is that spring kept running the no-argument constructor on it, which was trying to go to localhost.

So I deleted that constructor and now my spring boot app won't start because WebClient doesn't have a no-arg constructor.

So what did I miss? I have

```
@SpringBootApplication
public class WfwwebApplication {
    public static void main(String[] args) {
        SpringApplication.run(WfwwebApplication.class, args);
    }
}

```

Which is supposed to turn on auto configuration and all the research I've done says it will now pick up the configuration class automatically.

I double checked my @Configuration to make sure it wasn't loading it from another library. ;)

Ideas?