关于spring配置的疑问





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?
这是为什么呢?





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?
这是为什么呢?