File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
springdoc-openapi-common/src/main/java/org/springdoc/core Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 21
21
import java .util .ArrayList ;
22
22
import java .util .List ;
23
23
24
- import org .springframework .boot .autoconfigure .condition .ConditionalOnBean ;
24
+ import org .springframework .boot .autoconfigure .condition .ConditionalOnProperty ;
25
25
import org .springframework .boot .context .properties .ConfigurationProperties ;
26
26
import org .springframework .context .annotation .Configuration ;
27
27
import org .springframework .http .MediaType ;
28
28
29
+ import static org .springdoc .core .Constants .SPRINGDOC_ENABLED ;
30
+
29
31
@ Configuration
30
32
@ ConfigurationProperties (prefix = "springdoc" )
31
- @ ConditionalOnBean ( SpringDocConfiguration . class )
33
+ @ ConditionalOnProperty ( name = SPRINGDOC_ENABLED , matchIfMissing = true )
32
34
public class SpringDocConfigProperties {
33
35
34
36
private boolean showActuator ;
You can’t perform that action at this time.
0 commit comments