dataSource是一个连接池用来获取连接的
id="JdbcBasicTxProxy" abstract="true"
class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean"
PROPAGATION_REQUIRED,readOnly
接下来,配置service
发现会报错:Invalid property 'transactionManager' of bean class [com.huangcf.login.service.impl.LoginServiceImpl]: Bean property 'transactionManager' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
这是为什么呢?
关于spring配置的疑问
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-
1条回答 默认 最新
cap_jack_sp 2015-11-01 14:09关注
id="JdbcBasicTxProxy" abstract="true"
class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean"
PROPAGATION_REQUIRED,readOnly
发现会报错:Invalid property 'transactionManager' of bean class [com.huangcf.login.service.impl.LoginServiceImpl]: Bean property 'transactionManager' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
这是为什么呢?解决 无用评论 打赏 举报