Spring 原生SQL查询

public interface UserRepository extends JpaRepository<User, Long> {

  //按表查询 
 @Query(value = "SELECT * FROM USERS WHERE EMAIL_ADDRESS = ?1", nativeQuery = true) User findByEmailAddress(String emailAddress); }

  

posted @ 2020-01-03 15:12  麦克斯-侯  阅读(472)  评论(0编辑  收藏  举报
百纵科技