File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
spring-orm/src/main/java/org/springframework/orm/hibernate5 Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 25
25
import org .hibernate .resource .beans .container .spi .ContainedBean ;
26
26
import org .hibernate .resource .beans .spi .BeanInstanceProducer ;
27
27
28
- import org .springframework .beans .factory . BeanCreationException ;
28
+ import org .springframework .beans .BeansException ;
29
29
import org .springframework .beans .factory .config .AutowireCapableBeanFactory ;
30
30
import org .springframework .beans .factory .config .ConfigurableListableBeanFactory ;
31
31
import org .springframework .lang .Nullable ;
@@ -154,7 +154,7 @@ private SpringContainedBean<?> createBean(
154
154
return new SpringContainedBean <>(this .beanFactory .getBean (beanType ));
155
155
}
156
156
}
157
- catch (BeanCreationException ex ) {
157
+ catch (BeansException ex ) {
158
158
if (logger .isDebugEnabled ()) {
159
159
logger .debug ("Falling back to Hibernate's default producer after bean creation failure for " +
160
160
beanType + ": " + ex );
@@ -177,7 +177,7 @@ private SpringContainedBean<?> createBean(
177
177
return new SpringContainedBean <>(this .beanFactory .getBean (name , beanType ));
178
178
}
179
179
}
180
- catch (BeanCreationException ex ) {
180
+ catch (BeansException ex ) {
181
181
if (logger .isDebugEnabled ()) {
182
182
logger .debug ("Falling back to Hibernate's default producer after bean creation failure for " +
183
183
beanType + ": " + ex );
You can’t perform that action at this time.
0 commit comments