该文被密码保护。 阅读全文
posted @ 2020-10-23 11:01 Cxvvy 阅读(0) 评论(0) 推荐(0) 编辑
摘要: import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.web.client 阅读全文
posted @ 2020-10-17 23:23 Cxvvy 阅读(48) 评论(0) 推荐(0) 编辑
摘要: 1. xxx.jar Dockerfile目录下docker build -t xxx(镜像名) . 点代表当前路径 此时就有镜像了,依靠这个镜像可以启动多个容器 docker images 查看当前镜像 docker ps -a 查看容器 xxx docker sotp [CONTAINER ID 阅读全文
posted @ 2020-10-16 14:16 Cxvvy 阅读(42) 评论(0) 推荐(0) 编辑
摘要: 问题描述:使用Arrays.asList(); 把一个数组转为List, 然后移除其中元素时报错。 代码截图: 结论:Arrays.asList(); 返回的是Arrays的内部类ArrayList, 而这个内部类并没有对remove(); add();等方法进行重写,而是直接抛出Unsupport 阅读全文
posted @ 2020-08-08 13:51 Cxvvy 阅读(93) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2020-07-10 11:58 Cxvvy 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 1.打包 jar。 2.编辑Dockerfile FROM java:8 VOLUME /tmp ADD demo.jar app.jar ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/app.jar"] 阅读全文
posted @ 2020-06-26 22:24 Cxvvy 阅读(46) 评论(0) 推荐(0) 编辑
摘要: 1.docker pull nginx (不指定版本号,默认下载最新版本) 2.docker run -it -d --name mynginx -p 8080:8080 -v /home/nginx/conf/nginx.conf:/etc/nginx/nginx.conf -v /home/ng 阅读全文
posted @ 2020-05-19 23:14 Cxvvy 阅读(46) 评论(0) 推荐(0) 编辑
摘要: 1.docker daemon docker 守护进程,是一个在宿主机(DOCKER_HOST)的后台进程,可通过docker客户端与之通信。 2.images (docker镜像),docker镜像是一个只读模板,包含创建容器的说明。 类似使用系统安装光盘可以安装系统,使用docker镜像可以运行 阅读全文
posted @ 2020-05-17 08:30 Cxvvy 阅读(60) 评论(0) 推荐(0) 编辑
摘要: 3.下面查看安装的sql server版本 rpm -qa | grep mssql 4.查看安装的路径 find / -name mssql 5.设置开机启动 systemctl enable mssql-server 6.打开1433端口 firewall-cmd --zone=public - 阅读全文
posted @ 2020-05-13 23:39 Cxvvy 阅读(46) 评论(0) 推荐(0) 编辑
摘要: mybatis-plus: mapper-locations: classpath:xxx/*.xml type-aliases-package: com.xxx.xxx configuration: call-setters-on-nulls: true # null 显示问题 global-co 阅读全文
posted @ 2020-05-13 23:38 Cxvvy 阅读(57) 评论(0) 推荐(0) 编辑