0
我正在开发一个spring应用程序(基于注释的配置),其中index.jsp是我的默认欢迎页面。但现在我不想将index.jsp显示为我的欢迎页面,并且想要将其更改为home.jsp。我怎么能做到这一点。我如何设置home.jsp作为我的欢迎页面在基于java配置的春天申请
我尝试以下方法从WebMvcConfigurerAdapter类
@Override
public void addViewControllers(ViewControllerRegistry registry) {
registry.addViewController("/").setViewName("home");
}
它不工作