进行项目开发时抛出如下异常:
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-代码