All Downloads are FREE. Search and download functionalities are using the official Maven repository.

java-pkmst.SpringBootApplication.mustache Maven / Gradle / Ivy

There is a newer version: 7.8.0
Show newest version
package {{basePackage}};

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
{{#eurekaUri}}
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
{{/eurekaUri}}
import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * starts the spring boot application
 * @author pkmst
 *
 */
 
@SpringBootApplication
@EnableSwagger2
{{#eurekaUri}}
@EnableEurekaClient
{{/eurekaUri}}
@EnableCircuitBreaker
@EnableHystrixDashboard
public class {{serviceName}}Application {

  private static final Logger LOGGER = LoggerFactory.getLogger({{serviceName}}Application.class);

  public static void main(String[] args) {
    LOGGER.debug("Running spring boot application");
    SpringApplication.run({{serviceName}}Application.class, args);
  }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy