Je suis nouveau sur Java et Spring. Comment puis-je mapper la racine http://localhost:8080/de mon application à un statique index.html? Si je navigue vers http://localhost:8080/index.htmlses travaux bien.
La structure de mon application est:

Mon config\WebConfig.javaressemble à ceci:
@Configuration
@EnableWebMvc
@ComponentScan
public class WebConfig extends WebMvcConfigurerAdapter {
    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
        registry.addResourceHandler("/**").addResourceLocations("/");
        }
}
J'ai essayé d'ajouter registry.addResourceHandler("/").addResourceLocations("/index.html");mais cela échoue.
http://localhost:8080/appNamemais ce n'est pas ce dont j'ai besoin ...
                