学习笔记
小桥未久
这个作者很懒,什么都没留下…
展开
-
es中must和should的组合查询
使用must和should混用的时候,should不生效? 列如,需要同时满足productRecomentd和location,shold中满足一个条件就返回,经过多次测试,发现should不起效果 { "from": 0, "size": 2, "query": { "bool": { "must": [ { "match": { "productRecommend": "1" ..原创 2021-02-04 15:19:43 · 3616 阅读 · 0 评论 -
SpringBoot自动配置原理
SpringBoot启动时候加载主配置类,开启了自动配置功能@EnableAutoConfiguration @EnableAutoConfiguration 1. 使用AutoConfigurationImportSelector.class给容器导入一些组件 2. getCandidateConfigurations(annotationMetadata, attributes);获取候选的配置 3. private static Map<String, List<String>>原创 2020-12-28 15:48:50 · 132 阅读 · 0 评论