12 2020 档案

摘要:C++单例模式 单例饿汉式 加载类的时候初始化(不使用也会构造类,空间换时间) #include <stdio.h> #include <string> class DriverManger { private: long m_nDate; int m_nDriverNum; std::string 阅读全文
posted @ 2020-12-20 16:39 熊云港 编辑
摘要:同步监视器 condition同步监视器 condition类方法await\signalAll可替换Object方法wait,notify /** * * 线程A执行+1操作,线程B执行-1操作。。。 * A execute add ,num = 1 D execute sub ,num = 0 阅读全文
posted @ 2020-12-13 23:58 熊云港 编辑
摘要:https://baomidou.com/guide 集成springboot 依赖 核心依赖spring-boot-starter、lombo、mybatis-plus-boot-starter、mysql 使用Mybatis-plus代替Mybatis的依赖 <dependencies> <!- 阅读全文
posted @ 2020-12-06 00:19 熊云港 编辑
摘要:反向代理 根据域名,反向代理到指定服务器 server { listen 80; server_name home.com; location / { root /data/www; } } server { listen 80; server_name pan.com; location / { 阅读全文
posted @ 2020-12-04 22:09 熊云港 编辑
摘要:docker部署springboot项目 dockerfile # 基础镜像 FROM primetoninc/jdk:1.8 # 复制jar包到容器目录 COPY vmds-0.0.1-SNAPSHOT.jar / # 容器暴漏端口 EXPOSE 8001 # 运行命令启动项目 ENTRYPOIN 阅读全文
posted @ 2020-12-03 15:55 熊云港 编辑

点击右上角即可分享
微信分享提示