I'm using Spring boot along with Spring Data JPA. I'm stucking in an odd scenario when saving a new entity.
Unsing method from extended CrudRepository class, all works as expected. If I inject via @Autowired the CrudRepository interface in my service layer, the method still works, but nothing is persisted on db. The returned object from 'save' method seems ok, since I get an always increasing ID value.
Suggestions? Cheers FB
检查我们是否在您的 bean 中正确填充数据并在传递给 spring 数据 jpa 的保存方法之前检查它
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.