मैं जावा और स्प्रिंग के लिए नया हूं। मैं अपने ऐप रूट 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लेकिन इसकी मुझे क्या जरूरत है ...
