Skip to content
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

spring-boot2.3.1版本引入apiboot-swagger问题 #20

Closed
Aaron-Lfg opened this issue Jul 3, 2020 · 2 comments
Closed

spring-boot2.3.1版本引入apiboot-swagger问题 #20

Aaron-Lfg opened this issue Jul 3, 2020 · 2 comments
Assignees
Labels
kind/bug Something isn't working

Comments

@Aaron-Lfg
Copy link

  1. springboot2.3.x的版本把validation从spring-boot-starter-web内移出来了,需要单独依赖javax.validation
    2.不引入apiboot-oauth2,swagger-ui页面还是会需要有认证
@hengboy
Copy link
Member

hengboy commented Jul 3, 2020

SpringBoot在2.3.x分支版本的spring-boot-starter-web依赖内删除了spring-boot-starter-validation,在项目中添加该依赖即可,如下所示:

<!--After SpringBoot 2.3.x version, need to add this dependency-->
<dependency>
     <groupId>org.springframework.boot</groupId>
     <artifactId>spring-boot-starter-validation</artifactId>
</dependency>

@hengboy
Copy link
Member

hengboy commented Jul 3, 2020

该问题在ApiBoot v2.2.6之后的版本会修复

@hengboy hengboy added the kind/bug Something isn't working label Jul 3, 2020
@hengboy hengboy self-assigned this Jul 3, 2020
@hengboy hengboy closed this as completed Jul 3, 2020
hengboy added a commit that referenced this issue Jul 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants