Package com.bld.proxy.api.find.config
Class ProxyControllerSwaggerConfig
java.lang.Object
com.bld.proxy.api.find.config.ProxyControllerSwaggerConfig
@Configuration
@ConditionalOnClass(name="org.springdoc.core.customizers.OpenApiCustomizer")
public class ProxyControllerSwaggerConfig
extends Object
Auto-configuration that fixes the Swagger/SpringDoc tag names for
ApiFindController proxy beans.
JDK dynamic proxies have auto-generated class names (e.g. $Proxy265).
SpringDoc converts them to kebab-case tags like $-proxy-265, which is
not useful. This customizer replaces those tags with the kebab-case name of the
original interface (e.g. service-type-find-controller).
This configuration is activated only when SpringDoc is on the classpath.
It is picked up automatically via the @ComponentScan in
ProxyApiFindConfig.
- Author:
- Francesco Baldi
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ProxyControllerSwaggerConfig
public ProxyControllerSwaggerConfig()
-