- 博客(3)
- 收藏
- 关注
原创 Angular环境搭建
1.安装node环境 官网直接下载安装包,http://nodejs.cn/download/ 也可用其他的方式。个人感觉下载官网的比较块。 安装结束后终端输入:node -v,出现node版本号 2.安装npm,创建阿里镜像 npm install -g cnpm --registry=https://registry.npm.taobao.org 3.安装angular环境 n...
2019-07-31 19:44:18 156
原创 JPA自定义类接收查询结果,联表查询
@Query("select new com.vo.UserInfoVo(u.id,u.userName,g.score) from UserInfo u left join Grade g on u.id = g.userId where u.id =:userId ") List<UserInfoVo> queryEmpList(@Param("userId") String us...
2019-07-25 09:58:34 411
原创 JPA自定义条件查询
@Query(value = "select a.name,a.name from tablea a left join tableb b on a.id = b.id where if(?1 !='',a.xx=?1,1=1) and if(?2 !='',b.xxx like %?2%,1=1) and a.xxx = ?3",nativeQuery = true) List<Map...
2019-07-25 09:52:07 1306 1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人