Spring/Hibernate Exception: createCriteria is not valid without active transaction

后端 未结 1 1933
时光取名叫无心
时光取名叫无心 2020-12-31 18:16

I spent few days on an spring-hibernate-transaction issue. I create a simple webservice with jaxws + spring + hibernate, it works fine but when I call a web methode which us

1条回答
  •  庸人自扰
    2020-12-31 18:41

    Ok I found the problem ! I removed this line from the hibernate configuration. Spring manages the transaction, and it doesn't need of that the session is holding in a hibernate thread.

    
    thread
    

    0 讨论(0)
提交回复
热议问题