上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 38 下一页
摘要: mapper实现基本的接口 下面是源码:书写的Mapper只需要继承这个BaseMapper就行 /** * Mapper 继承该接口后,无需编写 mapper.xml 文件,即可获得CRUD功能 * <p>这个 Mapper 支持 id 泛型</p> * * @author hubin * @si 阅读全文
posted @ 2021-05-04 15:43 余生请多指教ANT 阅读(75) 评论(0) 推荐(0)
摘要: http://www.postgres.cn/docs/9.3/datatype-net-types.html#DATATYPE-INET 文档有详细的pgsql介绍 使用案例: SELECT to_char(12345,'') 为空SELECT to_char(12345,'99999')//12 阅读全文
posted @ 2021-05-03 16:56 余生请多指教ANT 阅读(251) 评论(0) 推荐(0)
摘要: join on 与数学原理 pgsql切换数据库 直接输入 \C youdatabasename 即可 \d 表名 —— 得到表结构 select * from tablename查看表的数据 相信有不少人读一遍两边都不懂, A集合有n行,x列,B集合有m行,y列 那么笛卡尔之积就是 一个(m*n) 阅读全文
posted @ 2021-05-02 23:17 余生请多指教ANT 阅读(2864) 评论(0) 推荐(0)
摘要: --求所有人的薪水的总和,平均值,最大值,最小值 select sum(sal) , avg(sal), max(sal) , min(sal) from emp; --求总的行数 select count(*) from emp; --求总的行树,(可以指定具体的字段)但如果字段有null值的时候 阅读全文
posted @ 2021-05-02 15:07 余生请多指教ANT 阅读(291) 评论(0) 推荐(0)
摘要: 过滤 filter; //匹配第一个元素 Optional<Integer> findFirst=list.stream().filter(x->x>6).findFirst(); //任意匹配 (适用于并行流) List<String> collect = personList.stream(). 阅读全文
posted @ 2021-05-01 22:57 余生请多指教ANT 阅读(153) 评论(0) 推荐(0)
摘要: package library.book.demo.config.loginconfig; import com.alibaba.fastjson.JSON; import com.sun.org.apache.xml.internal.security.algorithms.JCEMapper; 阅读全文
posted @ 2021-04-20 22:02 余生请多指教ANT 阅读(199) 评论(0) 推荐(0)
摘要: package dubbo.wangbiao.project.ThreadAndSocket.designprinciples.lishitihuanyuanze.k0; //长方形 public class Rectangle { private long height; public long 阅读全文
posted @ 2021-04-19 22:25 余生请多指教ANT 阅读(63) 评论(0) 推荐(0)
摘要: 代理类的两种写法: package com.wangbiao.mybetty.demo; import java.lang.reflect.InvocationHandler; import java.lang.reflect.Method; import java.lang.reflect.Pro 阅读全文
posted @ 2021-04-19 21:16 余生请多指教ANT 阅读(408) 评论(5) 推荐(0)
摘要: 出现如下错误时: Could not found property service.disableGlobalTransaction, try to use default value instead 控制台错误才会消失 file.config内容:# 通信协议 transport { # tcp 阅读全文
posted @ 2021-04-12 21:39 余生请多指教ANT 阅读(1211) 评论(0) 推荐(0)
摘要: package com.wangbiao.config; import com.netflix.zuul.ZuulFilter; import com.netflix.zuul.context.RequestContext; import com.netflix.zuul.exception.Zuu 阅读全文
posted @ 2021-04-11 17:57 余生请多指教ANT 阅读(397) 评论(0) 推荐(0)
上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 38 下一页