nested exception is org.hibernate.hql.ast.QuerySyntaxException: User_test is not mapped [from User_test u where u.username = 'a']

上面的异常的抛出主要有几个方面:1、最容易想到的,就是你的from是实体类而不是表名,这个应该大家都知道,注意大小写

posted @ 2018-03-11 16:18  奔跑小王子  阅读(313)  评论(0编辑  收藏  举报