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 39
39
import org .springdoc .core .customizers .OpenApiCustomiser ;
40
40
import org .springdoc .core .customizers .PropertyCustomizer ;
41
41
42
+ import org .springframework .beans .factory .config .BeanDefinition ;
42
43
import org .springframework .beans .factory .config .BeanFactoryPostProcessor ;
43
44
import org .springframework .beans .factory .config .ConfigurableBeanFactory ;
44
45
import org .springframework .boot .autoconfigure .condition .AnyNestedCondition ;
@@ -177,10 +178,10 @@ BeanFactoryPostProcessor beanFactoryPostProcessor2() {
177
178
private BeanFactoryPostProcessor getBeanFactoryPostProcessor () {
178
179
return beanFactory -> {
179
180
for (String beanName : beanFactory .getBeanNamesForType (OpenAPIBuilder .class )) {
180
- beanFactory .getBeanDefinition (beanName ).setScope ("prototype" );
181
+ beanFactory .getBeanDefinition (beanName ).setScope (BeanDefinition . SCOPE_PROTOTYPE );
181
182
}
182
183
for (String beanName : beanFactory .getBeanNamesForType (OpenAPI .class )) {
183
- beanFactory .getBeanDefinition (beanName ).setScope ("prototype" );
184
+ beanFactory .getBeanDefinition (beanName ).setScope (BeanDefinition . SCOPE_PROTOTYPE );
184
185
}
185
186
};
186
187
}
You can’t perform that action at this time.
0 commit comments