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

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

原文地址:https://www.cnblogs.com/zy20160117/p/8544563.html