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

org.springdoc.Application Maven / Gradle / Ivy

There is a newer version: 3.1.2
Show newest version
package org.springdoc;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.context.annotation.ComponentScan;

import io.swagger.v3.oas.annotations.OpenAPIDefinition;
import io.swagger.v3.oas.annotations.info.Contact;
import io.swagger.v3.oas.annotations.info.Info;
import io.swagger.v3.oas.annotations.info.License;

@SpringBootApplication
@ComponentScan(basePackages = { "org.springdoc.sample1", "org.springdoc.sample2" })
@OpenAPIDefinition(info = @Info(title = "the title", version = "0.0", description = "My API", license = @License(name = "Apache 2.0", url = "http://foo.bar"), contact = @Contact(url = "http://gigantic-server.com", name = "Fred", email = "[email protected]")))
public class Application extends SpringBootServletInitializer {

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


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy