``` @SpringBootApplication @ComponentScan public c...
# spring
t
Copy code
@SpringBootApplication
@ComponentScan
public class Application extends SpringBootServletInitializer {

    @Override
    protected SpringApplicationBuilder configure(final SpringApplicationBuilder application) {
        return application.sources(Application.class);
    }

    public static void main(final String[] args) {
        SpringApplication.run(Application.class, args);
    }

    @Bean
    Module kotlinModule() {
        return new KotlinModule();
    }

    @Bean
    Module jdk8Module() {
        return new Jdk8Module();
    }
}