New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to run with spring boot 3.0.0-snapshot? #3983
Comments
How to? |
2 similar comments
How to? |
How to? |
We can migrate to springdoc. This library also supports OpenAPI 3 and Swagger UI. @guwan @wangqinggo @1171736840 @TyinOne <dependency>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
<version>2.0.0-M3</version>
</dependency> /**
* 接口文档配置
*
* @author Canva
*/
@Configuration
public class SpringDocConfig {
@Bean
public OpenAPI apiInfo() {
return new OpenAPI().info(new Info().title("后端接口文档").version("1.0.0"));
}
@Bean
public GroupedOpenApi httpApi() {
return GroupedOpenApi.builder()
.group("http")
.pathsToMatch("/**")
.build();
}
} |
@CanvaChen springdoc啥都好 就是注解不习惯 |
Swagger will support springboot 3.0.x in the future? |
@flower-worm It is not Swagger that is the problem. The problem is in SpringFox, which is implementation of Swagger UI. You can use Spring Doc - another implementation of the same Open API documentation and Swagger UI. |
@strazdinsg Thank you. The problem is in SpringFox, when i upgrade the boot version to 3.0.x, there are some exception appear. I wish i can just revise the version to solve the problem, but i think it's a time to learn spring Doc. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Hi Team, Any help is much appreciated. FYI: Thanks, |
Hi Team, Hope this solution will help if anyone face the similar issue. Thanks, |
verify your context path and reload your application |
use this org.springdoc springdoc-openapi-starter-webmvc-ui 2.0.0 |
How to run with spring boot 3.0.0-snapshot? Now I use
springfox-swagger2:3.0.0 and springfox-swagger-ui:3.0.0, which are reported
Caused by: java.lang.ClassNotFoundException: javax.servlet.http.HttpServletRequest
This is wrong, because it should be jakarta.servlet.http.HttpServletRequest
The text was updated successfully, but these errors were encountered: