首页>代码>Swagger的简单案例,适合初级者学习使用>/SwaggerTest/src/main/java/cn/jbit/dao/UserDao.java
package cn.jbit.dao;

import cn.jbit.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

public interface UserDao extends JpaRepository<User, Integer>, JpaSpecificationExecutor<User> {

    @Query(value = "select * from tb_user where id = ?1",nativeQuery = true)
    User selectById(Integer id);
}
最近下载更多
微信网友_6368711690080256  LV3 2023年2月28日
1203174100  LV1 2023年2月22日
282363  LV1 2022年10月4日
cao1992  LV24 2022年7月18日
yijie110  LV5 2022年4月18日
gy12345  LV6 2022年2月15日
taskmaster  LV6 2022年1月2日
zcl02036716  LV17 2021年12月3日
123854216  LV5 2021年11月24日
hyz419  LV6 2021年9月18日
最近浏览更多
内心向阳  LV4 2023年11月7日
jiemomo  LV12 2023年10月19日
lingtiejing  LV15 2023年10月1日
siximu912  LV10 2023年9月19日
qq573914838  LV5 2023年9月2日
youwuzuichen  LV10 2023年8月14日
空心菜4  LV9 2023年7月16日
8376x123 2023年6月12日
暂无贡献等级
hwbhome 2023年6月4日
暂无贡献等级
wangyz  LV8 2023年5月17日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友