一个错误与改正 hibernate

xiaoxiao2021-03-01  14

进行项目开发时抛出如下异常:

javax.servlet.ServletException: IllegalArgumentException occurred while calling setter of com.lab.domain.LabRoom.device; nested exception is org.hibernate.PropertyAccessException: IllegalArgumentException occurred while calling setter of com.lab.domain.LabRoom.device这里的原因是我把device设置成了数组形式,而数组是不允许为null的所以就会抛出异常,而改成了Set<Device>之后就没有异常了。 相关资源:带音效新年烟花动画特效-HTML-代码
转载请注明原文地址: https://www.6miu.com/read-4050325.html

最新回复(0)