How can I add a custom resource location that is on for example my D drive in folder called Resources. 

```
@Configuration
public class StaticResourceConfiguration extends WebMvcConfigurerAdapter {
    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
        super.addResourceHandlers(registry);
        registry.addResourceHandler("/**").addResourceLocations("D:/Resources/");
    }
}

```

This doesn't work. 

This is my application class and the only other configuration file.

@SpringBootApplication
public class Application {

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

@Bean // for websocket endpoints
public ServerEndpointExporter serverEndpointExporter() {
    return new ServerEndpointExporter();
}

@Bean
public PasswordEncoder bcryptPasswordEncoder(){
    return new BCryptPasswordEncoder();
}

```

}