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.9.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;
{{#eurekaUri}}
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
{{/eurekaUri}}
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * starts the spring boot application
 * @author pkmst
 *
 */

@SpringBootApplication
@EnableSwagger2
{{#eurekaUri}}
@EnableEurekaClient
{{/eurekaUri}}
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