Code example for WebMvcConfigurationSupport

Methods: addViewControllers

0
        return internalResolver; 
    } 
 
    @Override 
    public void addViewControllers(ViewControllerRegistry registry) { 
        super.addViewControllers(registry); 
        registry.addViewController("/login/form") 
                .setViewName("login"); 
        registry.addViewController("/errors/403") 
                .setViewName("/errors/403"); 
    } 
}