Skip to content

[Bug] how to close actuator and knife4j #4459

@keyalab

Description

@keyalab

Search before asking

  • I had searched in the issues and found no similar issues.

What happened

  1. 设置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.

  1. 设置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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions