diff --git a/JavaSpring/libraries/spring-boot/openapi2SpringBoot.mustache b/JavaSpring/libraries/spring-boot/openapi2SpringBoot.mustache deleted file mode 100644 index cdcaccba9ffd..000000000000 --- a/JavaSpring/libraries/spring-boot/openapi2SpringBoot.mustache +++ /dev/null @@ -1,40 +0,0 @@ -package {{basePackage}}; - -{{#openApiNullable}} -import com.fasterxml.jackson.databind.Module; -import org.openapitools.jackson.nullable.JsonNullableModule; -{{/openApiNullable}} -import org.springframework.boot.SpringApplication; -import org.springframework.boot.autoconfigure.SpringBootApplication; -{{#useSpringSecurityPreAuthorize}} -import org.springframework.security.config.annotation.method.configuration.EnableMethodSecurity; -{{/useSpringSecurityPreAuthorize}} -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.ComponentScan; -import org.springframework.context.annotation.FilterType; -import org.springframework.context.annotation.FullyQualifiedAnnotationBeanNameGenerator; - -@SpringBootApplication( - nameGenerator = FullyQualifiedAnnotationBeanNameGenerator.class -) -@ComponentScan( - basePackages = {"{{basePackage}}", "{{apiPackage}}" , "{{configPackage}}"}, - nameGenerator = FullyQualifiedAnnotationBeanNameGenerator.class -) -{{#useSpringSecurityPreAuthorize}} -@EnableMethodSecurity -{{/useSpringSecurityPreAuthorize}} -public class OpenApiGeneratorApplication { - - public static void main(String[] args) { - SpringApplication.run(OpenApiGeneratorApplication.class, args); - } - -{{#openApiNullable}} - @Bean(name = "{{basePackage}}.OpenApiGeneratorApplication.jsonNullableModule") - public Module jsonNullableModule() { - return new JsonNullableModule(); - } -{{/openApiNullable}} - -}