{"action":"created","issue":{"url":"https://api.github.com/repos/springfox/springfox/issues/811","labels_url":"https://api.github.com/repos/springfox/springfox/issues/811/labels{/name}","comments_url":"https://api.github.com/repos/springfox/springfox/issues/811/comments","events_url":"https://api.github.com/repos/springfox/springfox/issues/811/events","html_url":"https://github.com/springfox/springfox/issues/811","id":90398673,"number":811,"title":"Slow Startup - Spring Boot","user":{"login":"bryantp","id":1031055,"avatar_url":"https://avatars.githubusercontent.com/u/1031055?v=3","gravatar_id":"","url":"https://api.github.com/users/bryantp","html_url":"https://github.com/bryantp","followers_url":"https://api.github.com/users/bryantp/followers","following_url":"https://api.github.com/users/bryantp/following{/other_user}","gists_url":"https://api.github.com/users/bryantp/gists{/gist_id}","starred_url":"https://api.github.com/users/bryantp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bryantp/subscriptions","organizations_url":"https://api.github.com/users/bryantp/orgs","repos_url":"https://api.github.com/users/bryantp/repos","events_url":"https://api.github.com/users/bryantp/events{/privacy}","received_events_url":"https://api.github.com/users/bryantp/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/springfox/springfox/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/springfox/springfox/labels/duplicate","name":"duplicate","color":"cccccc"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/springfox/springfox/milestones/30","html_url":"https://github.com/springfox/springfox/milestones/2.0.3","labels_url":"https://api.github.com/repos/springfox/springfox/milestones/30/labels","id":1167876,"number":30,"title":"2.0.3","description":"","creator":{"login":"dilipkrish","id":73257,"avatar_url":"https://avatars.githubusercontent.com/u/73257?v=3","gravatar_id":"","url":"https://api.github.com/users/dilipkrish","html_url":"https://github.com/dilipkrish","followers_url":"https://api.github.com/users/dilipkrish/followers","following_url":"https://api.github.com/users/dilipkrish/following{/other_user}","gists_url":"https://api.github.com/users/dilipkrish/gists{/gist_id}","starred_url":"https://api.github.com/users/dilipkrish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dilipkrish/subscriptions","organizations_url":"https://api.github.com/users/dilipkrish/orgs","repos_url":"https://api.github.com/users/dilipkrish/repos","events_url":"https://api.github.com/users/dilipkrish/events{/privacy}","received_events_url":"https://api.github.com/users/dilipkrish/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":10,"state":"closed","created_at":"2015-06-17T03:37:56Z","updated_at":"2015-06-24T15:17:55Z","due_on":null,"closed_at":"2015-06-24T15:17:55Z"},"comments":7,"created_at":"2015-06-23T14:00:22Z","updated_at":"2015-08-19T01:16:38Z","closed_at":"2015-06-23T14:27:09Z","body":"I am experiencing very slow document generation related to SpringFox in Spring Boot. It takes around 30 minutes to complete, and generally stays stuck at these kind of lines:\r\n\r\n    09:54:51.244 [RMI TCP Connection(3)-127.0.0.1] INFO  springfox.documentation.swagger.web.ClassOrApiAnnotationResourceGrouping 69 - Group for method home was welcome-controller\r\n\r\nand then slowly goes through the rest of the controllers. My controllers are all in the **com.my.app.controllers** package. Here is my Swagger Config file:\r\n\r\n```\r\n@EnableSwagger2\r\n@Configuration\r\npublic class SwaggerConfig {\r\n\r\n    @Bean\r\n    public Docket customImplementation(){\r\n        return new Docket(DocumentationType.SWAGGER_2)\r\n                .groupName(\"test-app\")\r\n                .select()\r\n                .apis(RequestHandlerSelectors.any())\r\n                .paths(not(regex(\"/error/.*\")))\r\n                .build()\r\n                .securitySchemes(newArrayList(getBasicAuthCredentials()));\r\n    }\r\n\r\n    private BasicAuth getBasicAuthCredentials(){\r\n        return new BasicAuth(\"superuser\");\r\n    }\r\n}\r\n```\r\n\r\nand my application entry point\r\n\r\n```\r\n@Configuration\r\n@ComponentScan(basePackages = \"com.my.app\")\r\n@EnableAutoConfiguration\r\n@EnableScheduling\r\n@EnableAsync\r\npublic class Main extends SpringBootServletInitializer {\r\n\r\n    private static Logger logger = LogManager.getLogger(Main.class);\r\n\r\n    @Override\r\n    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {\r\n        return application.sources(Main.class);\r\n    }\r\n\r\n}\r\n```\r\n\r\nI also noticed that it is going through a particular method multiple times:\r\n\r\n```\r\n09:57:42.721 [RMI TCP Connection(3)-127.0.0.1] INFO  springfox.documentation.swagger.web.ClassOrApiAnnotationResourceGrouping 69 - Group for method user was tenancy-controller\r\n09:57:42.724 [RMI TCP Connection(3)-127.0.0.1] INFO  springfox.documentation.swagger.web.ClassOrApiAnnotationResourceGrouping 69 - Group for method user was tenancy-controller\r\n09:57:42.727 [RMI TCP Connection(3)-127.0.0.1] INFO  springfox.documentation.swagger.web.ClassOrApiAnnotationResourceGrouping 69 - Group for method user was tenancy-controller\r\n09:57:42.729 [RMI TCP Connection(3)-127.0.0.1] INFO  springfox.documentation.swagger.web.ClassOrApiAnnotationResourceGrouping 69 - Group for method user was tenancy-controller\r\n09:57:42.731 [RMI TCP Connection(3)-127.0.0.1] INFO  springfox.documentation.swagger.web.ClassOrApiAnnotationResourceGrouping 69 - Group for method user was tenancy-controller\r\n09:57:42.733 [RMI TCP Connection(3)-127.0.0.1] INFO  springfox.documentation.swagger.web.ClassOrApiAnnotationResourceGrouping 69 - Group for method user was tenancy-controller\r\n09:57:42.736 [RMI TCP Connection(3)-127.0.0.1] INFO  springfox.documentation.swagger.web.ClassOrApiAnnotationResourceGrouping 69 - Group for method user was tenancy-controller\r\n09:57:42.738 [RMI TCP Connection(3)-127.0.0.1] INFO  springfox.documentation.swagger.web.ClassOrApiAnnotationResourceGrouping 69 - Group for method user was tenancy-controller\r\n```\r\n\r\nThis is my first time using Swagger and SpringFox. Thanks for any help!"},"comment":{"url":"https://api.github.com/repos/springfox/springfox/issues/comments/132408851","html_url":"https://github.com/springfox/springfox/issues/811#issuecomment-132408851","issue_url":"https://api.github.com/repos/springfox/springfox/issues/811","id":132408851,"user":{"login":"dilipkrish","id":73257,"avatar_url":"https://avatars.githubusercontent.com/u/73257?v=3","gravatar_id":"","url":"https://api.github.com/users/dilipkrish","html_url":"https://github.com/dilipkrish","followers_url":"https://api.github.com/users/dilipkrish/followers","following_url":"https://api.github.com/users/dilipkrish/following{/other_user}","gists_url":"https://api.github.com/users/dilipkrish/gists{/gist_id}","starred_url":"https://api.github.com/users/dilipkrish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dilipkrish/subscriptions","organizations_url":"https://api.github.com/users/dilipkrish/orgs","repos_url":"https://api.github.com/users/dilipkrish/repos","events_url":"https://api.github.com/users/dilipkrish/events{/privacy}","received_events_url":"https://api.github.com/users/dilipkrish/received_events","type":"User","site_admin":false},"created_at":"2015-08-19T01:16:38Z","updated_at":"2015-08-19T01:16:38Z","body":"@mjallday :+1: "}}