org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in file [C:\Users\应行\Workspaces\MyEclipse 10\.metadata\.me_tcat\webapps\MyShop\WEB-INF\classes\applicationContext-common.xml]: Invocation of init method failed; nested exception is org.hibernate.MappingException: Could not determine type for: com.jyh.util.hibernate.SexType, for columns: [org.hibernate.mapping.Column(sexrequest)]
type类型错误,这里的type指的是hibernate里的string类型,而不是大家一直以为的String,注意大小写的问题,不然会不小心出错,而且很难找。