@Override
public void configureDefaultServletHandling(DefaultServletHandlerConfigurer configurer) {
configurer.enable();
}
@Override
<BUG>public void addViewControllers(ViewControllerRegistry registry) {
registry.addViewController("/auth").setViewName("auth");
registry.addViewController("/").setViewName("home");</BUG>
registry.addViewController("/cancel").setViewName("cancel");
}

@Override
public Validator getValidator() {
return validator();
}
@Override
public void addFormatters(FormatterRegistry formatterRegistry) {
formatterRegistry.addFormatter(dateFormatter());
formatterRegistry.addFormatter(hospitalFormatter());
}
