私はJavaとSpringが初めてです。アプリのルートhttp://localhost:8080/を静的にマップするにはどうすればよいindex.htmlですか?私がhttp://localhost:8080/index.htmlその作品にうまくナビゲートすれば。
私のアプリの構造は:

私config\WebConfig.javaはこのように見えます:
@Configuration
@EnableWebMvc
@ComponentScan
public class WebConfig extends WebMvcConfigurerAdapter {
@Override
public void addResourceHandlers(ResourceHandlerRegistry registry) {
registry.addResourceHandler("/**").addResourceLocations("/");
}
}
追加しようとしたregistry.addResourceHandler("/").addResourceLocations("/index.html");が失敗する。
http://localhost:8080/appNameが、必要なものではありません...
