📜  jpa 存储库 Spring Boot 查询表未映射 - 无论代码示例

📅  最后修改于: 2022-03-11 14:55:53.283000             🧑  作者: Mango

代码示例1
public interface UserInfoRepository extends CrudRepository
    @Query("SELECT ID, NAME FROM USER", nativeQuery = true)
    Optional> findSomething();
}