-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Description
Search before asking
- 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
- I agree to follow this project's Code of Conduct