{"action":"created","issue":{"url":"https://api.github.com/repos/springfox/springfox/issues/795","labels_url":"https://api.github.com/repos/springfox/springfox/issues/795/labels{/name}","comments_url":"https://api.github.com/repos/springfox/springfox/issues/795/comments","events_url":"https://api.github.com/repos/springfox/springfox/issues/795/events","html_url":"https://github.com/springfox/springfox/issues/795","id":88537377,"number":795,"title":"New to Springfox","user":{"login":"Cpruce","id":2712171,"avatar_url":"https://avatars.githubusercontent.com/u/2712171?v=3","gravatar_id":"","url":"https://api.github.com/users/Cpruce","html_url":"https://github.com/Cpruce","followers_url":"https://api.github.com/users/Cpruce/followers","following_url":"https://api.github.com/users/Cpruce/following{/other_user}","gists_url":"https://api.github.com/users/Cpruce/gists{/gist_id}","starred_url":"https://api.github.com/users/Cpruce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cpruce/subscriptions","organizations_url":"https://api.github.com/users/Cpruce/orgs","repos_url":"https://api.github.com/users/Cpruce/repos","events_url":"https://api.github.com/users/Cpruce/events{/privacy}","received_events_url":"https://api.github.com/users/Cpruce/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/springfox/springfox/labels/question","name":"question","color":"006b75"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/springfox/springfox/milestones/26","html_url":"https://github.com/springfox/springfox/milestones/2.2.0","labels_url":"https://api.github.com/repos/springfox/springfox/milestones/26/labels","id":1054752,"number":26,"title":"2.2.0","description":"Next incremental release","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":28,"closed_issues":1,"state":"open","created_at":"2015-04-06T17:11:14Z","updated_at":"2015-07-14T13:40:26Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2015-06-15T20:50:31Z","updated_at":"2015-07-15T17:53:39Z","closed_at":null,"body":"Hi,\r\n\r\nI'm new to springfox, swagger, and maven and have recently taken over a project with an outdated version swagger-springmvc. I've got an idea of where to start with moving to springfox; however, the guidelines leave some questions unanswered. Should I now take the swaggerConfiguration bean out of the applicationContext-webmvc.xml file? In the pom.xml file, I should replace the swagger-annotations, swagger-core, and swagger-springmvc dependencies with\r\n\r\n![fox](https://cloud.githubusercontent.com/assets/2712171/8170512/f3fe1282-1365-11e5-8eb8-dc5c5b1a6348.png)\r\n\r\nright? As well as adding the repository the repository specified\r\n\r\nDoing this, I now don't have access to imports like com.wordnik.swagger.annotations. Should I replace com.wordnik with spring.documentation like the com.mangofactory? In addition, can you tell if I am missing anything?\r\n\r\nThanks for your help!"},"comment":{"url":"https://api.github.com/repos/springfox/springfox/issues/comments/121692618","html_url":"https://github.com/springfox/springfox/issues/795#issuecomment-121692618","issue_url":"https://api.github.com/repos/springfox/springfox/issues/795","id":121692618,"user":{"login":"Cpruce","id":2712171,"avatar_url":"https://avatars.githubusercontent.com/u/2712171?v=3","gravatar_id":"","url":"https://api.github.com/users/Cpruce","html_url":"https://github.com/Cpruce","followers_url":"https://api.github.com/users/Cpruce/followers","following_url":"https://api.github.com/users/Cpruce/following{/other_user}","gists_url":"https://api.github.com/users/Cpruce/gists{/gist_id}","starred_url":"https://api.github.com/users/Cpruce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cpruce/subscriptions","organizations_url":"https://api.github.com/users/Cpruce/orgs","repos_url":"https://api.github.com/users/Cpruce/repos","events_url":"https://api.github.com/users/Cpruce/events{/privacy}","received_events_url":"https://api.github.com/users/Cpruce/received_events","type":"User","site_admin":false},"created_at":"2015-07-15T17:53:39Z","updated_at":"2015-07-15T17:53:39Z","body":"My ApplicationSwaggerConfig looks like\r\n\r\nimport springfox.documentation.swagger2.annotations.EnableSwagger2;\r\n\r\nimport java.util.List;\r\n\r\n\r\n@EnableSwagger2\r\npublic class ApplicationSwaggerConfig {\r\n\r\n    private String apiVersion;\r\n    private List excludedResources;\r\n    private String basePath;\r\n\r\n    public void setApiVersion(String apiVersion) {\r\n        this.apiVersion = apiVersion;\r\n    }\r\n\r\n    public String getApiVersion() {\r\n        return apiVersion;\r\n    }\r\n\r\n    public void setExcludedResources(List excludedResources) {\r\n        this.excludedResources = excludedResources;\r\n    }\r\n\r\n    public List getExcludedResources() {\r\n        return excludedResources;\r\n    }\r\n\r\n    public void setBasePath(String basePath) {\r\n        this.basePath = basePath;\r\n    }\r\n\r\n    public String getBasePath() {\r\n        return basePath;\r\n    }\r\n}\r\n\r\nThe applicationContext-webmvc.xml contains\r\n\r\n<context:component-scan base-package=\"com.gram.pds\" use-default-filters=\"true\" />\r\n    <context:annotation-config/>\r\n    <aop:aspectj-autoproxy proxy-target-class=\"true\"/>\r\n\r\n\r\n\r\n    <!-- Scan some API controllers-->\r\n    <!--<context:component-scan base-package=\"com.gram.pds.search\"/>-->\r\n\r\n    <!-- Enables swgger ui-->\r\n    <mvc:resources mapping=\"swagger-ui.html\" location=\"classpath:/META-INF/resources/\"/>\r\n    <mvc:resources mapping=\"/webjars/**\" location=\"classpath:/META-INF/resources/webjars/\"/>\r\n\r\n\r\n    <!-- Include a swagger configuration-->\r\n    <bean name=\"/applicationSwaggerConfig\" class=\"com.gram.pds.search.swagger.ApplicationSwaggerConfig\">\r\n\r\n\r\n\r\nand it used to contain \r\n\r\n\r\n<bean id=\"documentationController\" class=\"com.mangofactory.swagger.spring.controller.DocumentationController\" />\r\n\r\n    <bean id=\"swaggerConfiguration\" class=\"com.mangofactory.swagger.SwaggerConfiguration\">\r\n        <property name=\"basePath\" value=\"${swagger.basePath}\"/>\r\n        <property name=\"apiVersion\" value=\"1.0\"/>\r\n        <property name=\"excludedResources\">\r\n            <list>\r\n                <value>/errors/*</value>\r\n            </list>\r\n        </property>\r\n\r\n    </bean>\r\n\r\n\r\nand in applicationContext-security.xml, I allowed\r\n\r\n    <security:http pattern=\"/api-docs/**\" security=\"none\" />\r\n    <security:http pattern=\"/v2/api-docs/**\" security=\"none\" />\r\n    <security:http pattern=\"/swagger-ui.html\" security=\"none\" />\r\n    <security:http pattern=\"/webjars/springfox-swagger-ui/**\" security=\"none\" />\r\n    <security:http pattern=\"/springfox/**\" security=\"none\" />\r\n\r\n\r\n\r\n\r\nPlease let me know if you need more information. I am having trouble seeing the /v2/api-docs/\r\n\r\n\r\n\r\n\r\n"}}