上一页 1 2 3 4 5 6 ··· 10 下一页
摘要: Route::get("/hello",function(){ return "hello world"; }); //匹配所有请求 Route::any("/hello1",function(){ return "hello world1"; }); //匹配两种请求方式 Route::match 阅读全文
posted @ 2021-12-11 23:11 动力起点 阅读(518) 评论(0) 推荐(0)
摘要: 1.创建laravel项目:composer create-project --prefer-dist laravel/laravel 项目名 2.启动项目:php artisan serve 阅读全文
posted @ 2021-12-11 22:18 动力起点 阅读(86) 评论(0) 推荐(0)
摘要: @Resource private TransactionTemplate transactionTemplate; @Override public Object getTest() { Student student = new Student(); student.setAge(1); stu 阅读全文
posted @ 2021-11-29 18:23 动力起点 阅读(41) 评论(0) 推荐(0)
摘要: POST /studs/_search { "query": { "bool": { "should": [ { "match": { "name.keyword": "姓名2" } }, { "match": { "name.keyword": "姓名3" } } ] } } } 阅读全文
posted @ 2021-11-09 18:11 动力起点 阅读(383) 评论(0) 推荐(0)
摘要: GET /gunspoc/_search { "query": { "match_all": {} }, "aggregations": { "aggrs": { "terms": { "field": "age" }, "aggregations": { "avgs": { "avg": { "f 阅读全文
posted @ 2021-11-09 17:36 动力起点 阅读(206) 评论(0) 推荐(0)
摘要: GET /gunspoc/_search { "query": { "match": { "name": "姓名" } }, "aggs": { "fenzu": { "terms": { "field": "age" }, "aggs": { "having":{ "bucket_selector 阅读全文
posted @ 2021-11-09 17:31 动力起点 阅读(555) 评论(0) 推荐(0)
摘要: 1.获取指定类的bean对象 import org.springframework.beans.BeansException; import org.springframework.context.ApplicationContext; import org.springframework.cont 阅读全文
posted @ 2021-10-15 11:10 动力起点 阅读(513) 评论(0) 推荐(0)
摘要: 1.es查询的时候加了filter过滤不会给出查询匹配得分 2.精确匹配推荐term,用match精确匹配加 属性.keyword 阅读全文
posted @ 2021-09-12 11:03 动力起点 阅读(46) 评论(0) 推荐(0)
摘要: import lombok.extern.slf4j.Slf4j; import org.springframework.context.annotation.Configuration; import sun.misc.BASE64Decoder; import javax.annotation. 阅读全文
posted @ 2021-08-19 14:09 动力起点 阅读(202) 评论(0) 推荐(0)
摘要: import com.gap.open.core.base.IOpenApi; import com.gap.open.core.base.OpenAuthConfig; import lombok.extern.slf4j.Slf4j; import org.apache.commons.coll 阅读全文
posted @ 2021-08-13 14:36 动力起点 阅读(2148) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 ··· 10 下一页