我有一个标准的Java线程,它需要执行事务性的Spring ThreadPoolExecutor数据库交互。entityManager);一旦我尝试对数据库执行实际的(删除)查询,则没有有效的事务可用:
org.springframework.dao.InvalidDataAccessApiUsageException: No EntityManag
这些是我的实体; public class IpAddress{
@Column(nullable = false, updatable = false)Application application;
private final User user;这是我试图删除的服务方法: public void deleteIpAddressForMercha