class path resource [springfox/documentation/schema/configuration/ModelsConfiguration.class]notfound

9 views
Skip to first unread message

Go Mezant

unread,
Aug 9, 2017, 3:22:45 PM8/9/17
to Swagger
I have added swagger to my app, with these dependencies in the POM:

<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger2</artifactId>
<version>2.7.0</version>
</dependency>

<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger-ui</artifactId>
<version>2.7.0</version>
</dependency>

<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-schema</artifactId>
<version>2.7.0</version>
</dependency>
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-core</artifactId>
<version>2.7.0</version>
</dependency>

My Main class looks like this with all the appropriate imports:

@SpringBootApplication
@EnableSwagger2
public class BIAWSUtils {
public static void main(String[] args) {
SpringApplication.run(BIAWSUtils.class, args);
}

@Bean
public Docket api() {
return new Docket(DocumentationType.SWAGGER_2).select().apis(RequestHandlerSelectors.any())
.paths(PathSelectors.any()).build();
}
}

Yet, I still receive the error above. I think that's all I need. Or am I missing something??

Ron Ratovsky

unread,
Aug 9, 2017, 3:34:23 PM8/9/17
to swagger-sw...@googlegroups.com

SpringFox is a community-provided

 

project. Please file a ticket on the project directly.

--
You received this message because you are subscribed to the Google Groups "Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggers...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages