// Path: app/src/main/java/de/codecentric/config/ApplicationWebConfiguration.java
// @Configuration
// public class ApplicationWebConfiguration extends WebMvcConfigurerAdapter {
// 
//     @Override
//     public void addViewControllers(ViewControllerRegistry registry) {
//         super.addViewControllers(registry);
//         registry.addViewController("/").setViewName("redirect:/currentSessions");
//     }
// 
//     @Bean
//     public ObjectMapper objectMapper() {
//         return new ObjectMapper();
//     }
// 
//     @Bean
//     public TimeValidator timeValidator() {
//         return new Time24HoursValidator();
//     }
// 
//     @Bean
//     public LocaleResolver localeResolver() {
//         SessionLocaleResolver slr = new SessionLocaleResolver();
//         slr.setDefaultLocale(Locale.US);
//         return slr;
//     }
// 
// }


import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.context.web.SpringBootServletInitializer;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Import;
import de.codecentric.config.ApplicationWebConfiguration;
package de.codecentric;



@EnableAutoConfiguration
@SpringBootApplication
@ComponentScan
// Path: app/src/main/java/de/codecentric/config/ApplicationWebConfiguration.java
// @Configuration
// public class ApplicationWebConfiguration extends WebMvcConfigurerAdapter {
// 
//     @Override
//     public void addViewControllers(ViewControllerRegistry registry) {
//         super.addViewControllers(registry);
//         registry.addViewController("/").setViewName("redirect:/currentSessions");
//     }
// 
//     @Bean
//     public ObjectMapper objectMapper() {
//         return new ObjectMapper();
//     }
// 
//     @Bean
//     public TimeValidator timeValidator() {
//         return new Time24HoursValidator();
//     }
// 
//     @Bean
//     public LocaleResolver localeResolver() {
//         SessionLocaleResolver slr = new SessionLocaleResolver();
//         slr.setDefaultLocale(Locale.US);
//         return slr;
//     }
// 
// }


// Path: app/src/main/java/de/codecentric/Application.java
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.context.web.SpringBootServletInitializer;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Import;
import de.codecentric.config.ApplicationWebConfiguration;

package de.codecentric;



@EnableAutoConfiguration
@SpringBootApplication
@ComponentScan
@Import(ApplicationWebConfiguration.class)