@Slf4j @SpringBootApplication @EntityScan({ "com.app.domain.models" }) @EnableJpaRepositories({ "com.app.domain.repositories" }) @ComponentScan({ "com.app.config", "com.app.domain", "com.app.workers" }) @EnableAutoConfiguration public class WorkerApplication { public static void main(String[] args) throws Exception { log.info("STARTING WORKER APPLICATION"); SpringApplication app = new SpringApplication(WorkerApplication.class); app.setWebApplicationType(WebApplicationType.NONE); // desligando a interface web app.run(args); } }