cap_jack_sp 2015-11-01 14:04 采纳率: 0%
浏览 1417

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

  • 写回答

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

    评论

报告相同问题?