1.1
org.springframework.dao.InvalidDataAccessResourceUsageException:
Named parameter not bound : id; nested exception is org.hibernate.QueryException:
Named parameter not bound : id
问题分析:可以检查一下 m.parentId =?1
1.2
Executing an update/delete query; nested exception is javax.persistence.TransactionRequiredException:
Executing an update/delete query
问题分析:这个异常可能是由于删除、更新等事物的异常。
解决办法:添加@Transactional注解