今天本来打算录视频的,突然遇到一个拦路虎,Hibernate注解配置,有一个注意点:要么都在属性上面注解配置,要么都在getXX()方法上面用注解配置,要不然就会报错: Caused by: org.hibernate.MappingException: Could not determine type for: entity.Room, at table: Course, for columns: [org.hibernate.mapping.Column 今天算是体会到了失败的感觉了,找了好