[Bug] how to close actuator and knife4j
Search before asking
- [x] I had searched in the issues and found no similar issues.
What happened
- 设置knife4j.enable=false,启动报错:
APPLICATION FAILED TO START
Description:
Parameter 0 of constructor in org.dinky.configure.Knife4jConfig required a bean of type 'com.github.xiaoymin.knife4j.spring.extension.OpenApiExtensionResolver' that could not be found.
Action:
Consider defining a bean of type 'com.github.xiaoymin.knife4j.spring.extension.OpenApiExtensionResolver' in your configuration.
- 设置management.server.port: xxxx,启动报错:
APPLICATION FAILED TO START
Description:
Parameter 4 of method webEndpointServletHandlerMapping in org.dinky.configure.Knife4jConfig required a bean of type 'org.springframework.boot.actuate.autoconfigure.endpoint.web.CorsEndpointProperties' that could not be found.
Action:
Consider defining a bean of type 'org.springframework.boot.actuate.autoconfigure.endpoint.web.CorsEndpointProperties' in your configuration.
What you expected to happen
能正常关闭actuator和knife4j
How to reproduce
knife4j.enable=false management.server.port: xxxx
Anything else
No response
Version
dev
Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
Code of Conduct
- [x] I agree to follow this project's Code of Conduct
Hello @keyalab, this issue is about web, so I assign it to @Zzm0809. If you have any questions, you can comment and reply.
你好 @keyalab, 这个 issue 是关于 web 的,所以我把它分配给了 @Zzm0809。如有任何问题,可以评论回复。
版本号 1.2.4
Hello @, this issue has not been active for more than 30 days. This issue will be closed in 7 days if there is no response. If you have any questions, you can comment and reply.
你好 @, 这个 issue 30 天内没有活跃,7 天后将关闭,如需回复,可以评论回复。