会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
勇往直前
有些路很远,走下去会很累,可是,不走,又会后悔。
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
5
6
7
8
9
10
11
12
13
···
17
下一页
2018年10月31日
mysql-left join
摘要: /**查询全部员工及领导*/ select e.ename,m.ename from emp e join emp m on e.mgr = m.empno; 现象: 上面sql无法查询最高领导(最高领导没有对应的领导) 解决: 采用left join方式
阅读全文
posted @ 2018-10-31 11:29 scwyfy
阅读(204)
评论(0)
推荐(0)
2018年10月29日
index-document-shard
摘要: 1、index、shard、document理解: a.每个index包含有多个document,index采用数据路由将document存放在shard中, b.算法(数据路由): shard = hash(routing) % num(primary shard) routing的取值决定将数据存放于哪个shard中 routing一...
阅读全文
posted @ 2018-10-29 09:52 scwyfy
阅读(334)
评论(0)
推荐(0)
2018年10月8日
ES-常见搜索方式
摘要: 1、query string search 2、query DSL 3、query filter 4、full-text search 5、phrase search 6、highlight search ----------------------------------------------------------------------------------- took:耗费了几毫秒...
阅读全文
posted @ 2018-10-08 16:00 scwyfy
阅读(2103)
评论(0)
推荐(0)
2018年9月25日
SpringBoot在自定义类中调用service层等Spring其他层
摘要: 解决方案: 1.上代码 @Component public class ServerHandler extends IoHandlerAdapter { @Autowired protected HealthDataService healthDataService; private static ServerHandler serverHandler ; ...
阅读全文
posted @ 2018-09-25 17:05 scwyfy
阅读(9616)
评论(0)
推荐(1)
2018年9月10日
mongodb crud
摘要: //添加数据 db.users.insert({"uName":"张三","age":30,"gender":"男"}); db.users.insert({"name":"李四","wifes":[{"wname":"小崔"},{"wname":"小李"}]}); //查询数据 db.students.find(); //查询数据(带格式显示) db.us
阅读全文
posted @ 2018-09-10 09:48 scwyfy
阅读(127)
评论(0)
推荐(0)
2018年9月5日
应用通信-方案二:Feign
摘要: ------------------客户端controller层--------------------- @RestController public class ClientFeignController { @Autowired private ProductFeignInterface productFeignInterface; @GetMapping("/msg") pu...
阅读全文
posted @ 2018-09-05 10:52 scwyfy
阅读(102)
评论(0)
推荐(0)
应用通信-方案一:RestTemplate
摘要: @RestController public class ClientController { @Autowired private LoadBalancerClient loadBalancerClient; // @Autowired // private RestTemplate template; @GetMapping("/msg") public String ms...
阅读全文
posted @ 2018-09-05 09:55 scwyfy
阅读(178)
评论(0)
推荐(0)
2018年8月31日
Springboot_StringRedisTemplate配置
摘要: @Bean public RedisTemplate redisTemplate(RedisConnectionFactory factory) { StringRedisTemplate template = new StringRedisTemplate(factory); //jackson将java对象转换成json对象。 Jack...
阅读全文
posted @ 2018-08-31 14:33 scwyfy
阅读(4485)
评论(0)
推荐(0)
2018年8月23日
activiti流程
摘要: package cn.demo.service.impl; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.InputStream; import java.util.ArrayList; import java.util.Hash...
阅读全文
posted @ 2018-08-23 08:44 scwyfy
阅读(463)
评论(0)
推荐(0)
2018年7月8日
存储过程
摘要: -- 声明一个人的信息,姓名、薪水、地址 declare -- Local variables here -- 姓名 v_name varchar2(50) := '张三'; --薪水 v_sal number(11,2); --地址 v_addr varchar2(200); begin -- 直接赋值 v_sal := 15800; -- 语句...
阅读全文
posted @ 2018-07-08 23:37 scwyfy
阅读(204)
评论(0)
推荐(0)
上一页
1
···
5
6
7
8
9
10
11
12
13
···
17
下一页
公告