初始化
使用@Configuration配置shiro无状态登录时出现的问题,在subject.login之后当前线程重新绑定了一个假定subject,isAuthenticated。
这里自定义的访问拦截器的创建需要放在shiroFilter之后,如下:
see:https://spring.io/projects/platform
The Platform will reach the end of its supported life on 9 April 2019. Maintenence releases of both the Brussels and Cairo lines will continue to be published up until that time. Users of the Platform are encourage to start using Spring Boot’s dependency management directory, either by using spring-boot-starter-parent
as their Maven project’s parent, or by importing the spring-boot-dependencies
bom.
本文主要阐述,Dubbo 多协议、单协议多端口实现
dubbo 2.6.5、2.7.0
dubbo-spring-boot-starter 0.2.0
首先要开启多协议的配置开关,再通过 protocols 指定多协议
1 | dubbo: |
拉取镜像
1 | # 默认拉取 redis:latest 版本 |
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24 version: '3.8'
services:
elasticsearch:
image: elasticsearch:6.6.2
container_name: ts_elasticsearch
ports:
- "9200:9200"
restart: always
volumes:
- "/data/docker/elasticsearch/data:/usr/share/elasticsearch/data"
environment:
- "bootstrap.memory_lock=true"
- "ES_JAVA_OPTS=-Xms1g -Xmx1g"
- "discovery.type=single-node"
ulimits:
memlock:
soft: -1
hard: -1
networks:
- elknet
networks:
elknet:
driver: bridge
https://www.elastic.co/guide/en/logstash/6.6/docker-config.html
docker-compose.yml
1 | version: '3.8' |
https://www.elastic.co/guide/en/kibana/6.6/docker.html
docker-compose.yml
1 | version: '3.8' |
安装
1 | # 注意 docker-compose 版本和 docker 版本有兼容要求 |
可执行权限
1 | $ sudo chmod +x /usr/local/bin/docker-compose |
验证安装
1 | $ docker-compose --version |
使用
1 | $ docker-compose -f grafana/docker-compose.yml up |
如果Dockerfile中使用ENTRYPOINT执行启动应用命令,则docker-compose可以使用command和environment指定环境变量
如果Dockerfile中使用CMD执行启动应用命令,则docker-compose不能使用command,需要使用environment指定环境变量
删除旧版本
1 | sudo yum remove docker \ |
1 | PUT _template/api-monitor |
order 默认 0
1 | ftpClient.controlEncoding=gb2312 |
file
1 | // tmp 是一个路径:./../tmp |
网站最新文章、最新评论等。使用 Redis 列表(List)集合,LPUSH 命令向 list 集合头部插入数据,LTRIM 命令对 list 集合进行修剪(trim)
1 | # 将一个或多个值插入到列表头部 |