File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
spring-tx/src/main/java/org/springframework/transaction/interceptor Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -240,9 +240,10 @@ protected final BeanFactory getBeanFactory() {
240
240
*/
241
241
@ Override
242
242
public void afterPropertiesSet () {
243
- if (getTransactionManager () == null && getBeanFactory () == null ) {
243
+ if (getTransactionManager () == null && this . beanFactory == null ) {
244
244
throw new IllegalStateException (
245
- "Setting the property 'transactionManager' or running in a BeanFactory is required" );
245
+ "Set the 'transactionManager' property or make sure to run within a BeanFactory " +
246
+ "containing a PlatformTransactionManager bean!" );
246
247
}
247
248
if (getTransactionAttributeSource () == null ) {
248
249
throw new IllegalStateException (
You can’t perform that action at this time.
0 commit comments