org.springframework.beans.factory.BeanCreationException

Error creating bean with name 'userRepository': Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'enableDefaultTransactions' of bean class [org.springframework.data.jpa.repository.support.JpaRepositoryFactoryBean]: Bean property 'enableDefaultTransactions' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?

Samebug tips3

Spring expects that the EntityManagerFactory has to be called "entityManagerFactory". It uses convention over configuration to make it easier to use.


rprp

Check Servers Launch Configuration in Eclipse. See the details below.


rprp

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web573

  • Stack trace

    • org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userRepository': Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'enableDefaultTransactions' of bean class [org.springframework.data.jpa.repository.support.JpaRepositoryFactoryBean]: Bean property 'enableDefaultTransactions' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter? at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    129 more bugmates