JPA 實體類 is not mapped 這個原因是 實體與表映射不上。 在使用實體名稱進行查詢時 請確定表名是否和實體名稱相同,如果不相同的話,請在實體類前加上 @Table (name="表名") 注釋 ...