Forum Discussion
Issue got resolved after upgrading spring-core
Hi,
I am also facing the same error, the swagger documentation doesn't contain @PostMapping API's endpoints.
http://localhost:8080/uwc/swagger-ui/index.html
Here is my pom dependency.
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-boot-starter</artifactId>
<version>3.0.0</version>
</dependency>
I also have the error on sever startup,
[main] ERROR springfox.documentation.spring.web.scanners.ApiDescriptionReader - Skipping process path[/demo/sendDetails], method[sendDetails] as it has an error.
java.lang.NoSuchMethodError: io.swagger.annotations.ApiParam.type()Ljava/lang/String;
at springfox.documentation.swagger.readers.parameter.ApiParamParameterBuilder.apply(ApiParamParameterBuilder.java:90)
at springfox.documentation.spring.web.plugins.DocumentationPluginsManager.parameter(DocumentationPluginsManager.java:117)
at springfox.documentation.spring.web.readers.operation.OperationParameterReader.readParameters(OperationParameterReader.java:126)
at springfox.documentation.spring.web.readers.operation.OperationParameterReader.apply(OperationParameterReader.java:81)
at springfox.documentation.spring.web.plugins.DocumentationPluginsManager.operation(DocumentationPluginsManager.java:144)
at springfox.documentation.spring.web.readers.operation.ApiOperationReader.read(ApiOperationReader.java:72)
at springfox.documentation.spring.web.scanners.CachingOperationReader.lambda$new$0(CachingOperationReader.java:43)
at java.util.HashMap.computeIfAbsent(HashMap.java:1127)
at springfox.documentation.spring.web.scanners.CachingOperationReader.read(CachingOperationReader.java:48)
at springfox.documentation.spring.web.scanners.ApiDescriptionReader.read(ApiDescriptionReader.java:72)
at springfox.documentation.spring.web.scanners.ApiListingScanner.scan(ApiListingScanner.java:169)
at springfox.documentation.spring.web.scanners.ApiDocumentationScanner.scan(ApiDocumentationScanner.java:67)
gokulak , can you please let me know to which spring-core version have you upgraded to?
Related Content
Recent Discussions
- 3 days ago
- 3 days ago
- 20 days ago