Search before asking
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?
Code of Conduct
Search before asking
What happened
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.
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?
Code of Conduct