严重: Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in file
[F:\eclipse\ambow\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\PWMIS\WEB-INF\classes\applicationContext.xml]:
Invocation of init method failed; nested exception is org.hibernate.MappingException: Could not determine type for: java.util.Set,
at table: role, for columns: [org.hibernate.mapping.Column(rights)]
解决:注解要写在统一的位置,不要一些在 private ,一些在get方法