EntityManager persist() method does not insert record to database

前端 未结 9 962
没有蜡笔的小新
没有蜡笔的小新 2021-02-04 11:52

I have problem with using EntityManager.persist(Object) method. Now when i get rid of other problems, by app work without Exception but object is not put in my data

9条回答
  •  渐次进展
    2021-02-04 12:32

    Adding these to your web.xml may solve this problem:

    
    
        openEntityManagerInViewFilter
        org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter
    
    
        openEntityManagerInViewFilter
        /*
    
    

提交回复
热议问题