使用JPA的findAll查询时实际数据库并未走指定的索引,导致查询速度变慢,因此想请教下各位是否可以通过注解强制JPA查询时走指定索引,类似 SELECT /*+ INDEX(tab1_ MGS_KG1) */ tab1_.id AS id_20_, tab1_.user_type AS user_type2_20_ FROM table1 tab1_