1、Failed to read candidate component class,java.lang.IllegalArgumentException
我用的是spring 3.2.8java用的是1.8
可能是java版本和spring3不兼容引起的
我的解决办法:
项目you右键-properties-搜索facets-project facets 查看java版本,将1.8改成1.7
2、org.hibernate.hql.internal.ast.QuerySyntaxException: Product is not mapped
1)HQL语句中对应的是类名而不是表名,确保类名大小写无误;2)hibernate.cfg.xml配置文件中是否忘了加入相应的映射文件<mapping resource=" " />