File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
springdoc-openapi-common/src/main/java/org/springdoc/core Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 3939import org .springdoc .core .customizers .OpenApiCustomiser ;
4040import org .springdoc .core .customizers .PropertyCustomizer ;
4141
42+ import org .springframework .beans .factory .config .BeanDefinition ;
4243import org .springframework .beans .factory .config .BeanFactoryPostProcessor ;
4344import org .springframework .beans .factory .config .ConfigurableBeanFactory ;
4445import org .springframework .boot .autoconfigure .condition .AnyNestedCondition ;
@@ -177,10 +178,10 @@ BeanFactoryPostProcessor beanFactoryPostProcessor2() {
177178 private BeanFactoryPostProcessor getBeanFactoryPostProcessor () {
178179 return beanFactory -> {
179180 for (String beanName : beanFactory .getBeanNamesForType (OpenAPIBuilder .class )) {
180- beanFactory .getBeanDefinition (beanName ).setScope ("prototype" );
181+ beanFactory .getBeanDefinition (beanName ).setScope (BeanDefinition . SCOPE_PROTOTYPE );
181182 }
182183 for (String beanName : beanFactory .getBeanNamesForType (OpenAPI .class )) {
183- beanFactory .getBeanDefinition (beanName ).setScope ("prototype" );
184+ beanFactory .getBeanDefinition (beanName ).setScope (BeanDefinition . SCOPE_PROTOTYPE );
184185 }
185186 };
186187 }
You can’t perform that action at this time.
0 commit comments