摘要:
首先在yml中配置 mybatis: configuration: log-impl: org.apache.ibatis.logging.stdout.StdOutImpl 会进行sql语句打印 问题:进行分页查询时pageHelper自动生成的count语句相当于在查询语句外包一层select 阅读全文
摘要:
https://www.npmjs.com/package/cw-table-ui?activeTab=readme 阅读全文
摘要:
做项目的时候,请求第三方接口是常用的功能: 一、get常用的方法及传参 1、使用占位符:适用于参数已知 String url = "https://q.stock.sohu.com/hisHq?code={code}8&start={start}&end={end}&stat={stat}&orde 阅读全文
摘要:
生产环境使用同一个ip和端口部署父子应用,所以和本地运行有所区别, 区别1:主应用中子应用的注册: var apps = [ { name: 'cw-wfw1', entry: '/child1/', //入口文件不同,本地为entry: '//localhost:10001', container 阅读全文
摘要:
1、创建索引:PUT fmmallproductsindex,所有单词要求小写 CreateIndexRequest fmmallProductsIndex = new CreateIndexRequest("fmmallproductsindex"); CreateIndexResponse cr 阅读全文
摘要:
创建索引模板:所有以fmmall和bar开头的索引将使用如下的模板创建索引 PUT _template/template_1?order=0 { "index_patterns": [ "fmmall*", "bar*" ], "settings": { "number_of_shards": 1 阅读全文
摘要:
nginx负载均衡配置: upstream myservers { server localhost:8081; server localhost:8082; } server { listen 8080; server_name localhost; location / { proxy_pass 阅读全文
摘要:
lru是Least Recently Used的缩写,也就是「最近很少使用」 LFU:Least Frequently Used的缩写,也就是「最近使用频次最少」 # volatile-lru -> Evict using approximated LRU among the keys with a 阅读全文
摘要:
集群的目的:解决redis的高可用及高并发 搭建流程: 搭建三主三备集群 一、集群的搭建 1、配置文件修改 2、启动6个服务: 3、集群启动命令(启动前记得开放阿里云端口7001/7006和17001/17006): redis-cli --cluster create 101.201.100.20 阅读全文