dinky icon indicating copy to clipboard operation
dinky copied to clipboard

[Bug] how to close actuator and knife4j

Open keyalab opened this issue 5 months ago • 3 comments

Search before asking

  • [x] 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

keyalab avatar Aug 26 '25 09:08 keyalab

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。如有任何问题,可以评论回复。

github-actions[bot] avatar Aug 26 '25 09:08 github-actions[bot]

版本号 1.2.4

keyalab avatar Aug 26 '25 10:08 keyalab

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 天后将关闭,如需回复,可以评论回复。

github-actions[bot] avatar Oct 01 '25 00:10 github-actions[bot]