-
-
Save henesgokdag/8ca995ca41de025f4e78aecb34db2be2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@SpringBootApplication() | |
@EnableSwagger2 | |
@EnableElasticsearchRepositories(basePackages = "org.example") | |
public class Application { | |
public static void main(String []args) throws IOException { | |
SpringApplication.run(Application.class,args); | |
System.out.println("Hello world"); | |
} | |
@Bean | |
public Docket api() { | |
return new Docket(DocumentationType.SWAGGER_2) | |
.select() | |
.apis(RequestHandlerSelectors.basePackage("org.example")) | |
.build(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment