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.factories中的 Knife4jAutoConfiguration 拿掉 #490

Closed
Jxin-Cai opened this issue Aug 31, 2022 · 6 comments · Fixed by #498
Closed

能否把spring.factories中的 Knife4jAutoConfiguration 拿掉 #490

Jxin-Cai opened this issue Aug 31, 2022 · 6 comments · Fixed by #498
Milestone

Comments

@Jxin-Cai
Copy link

1.spring.factories 加载配置类 Knife4jAutoConfiguration

2.@EnableKnife4j 也是加载配置类 Knife4jAutoConfiguration

两个并存,等于 @EnableKnife4j / 条件装配直接无效。 一旦引入 knife4j 就一定会加载配置。

@xiaoymin
Copy link
Owner

xiaoymin commented Sep 7, 2022

spring.factories不能拿掉啊,之前搞@EnableKnife4j注解是考虑到springmvc的情况,如果是boot环境 不使用这个注解也没啥影响吧

@linghengqian
Copy link
Contributor

spring.factories不能拿掉啊,之前搞@EnableKnife4j注解是考虑到springmvc的情况,如果是boot环境 不使用这个注解也没啥影响吧

@linghengqian
Copy link
Contributor

  • Do you think it is necessary to add a volunteer wanted tag to this issue?

@xiaoymin
Copy link
Owner

spring.factories不能拿掉啊,之前搞@EnableKnife4j注解是考虑到springmvc的情况,如果是boot环境 不使用这个注解也没啥影响吧

get

@linghengqian
Copy link
Contributor

@linghengqian
Copy link
Contributor

  • I am working on this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants