摘要: 两种情况 主要分为两种情况,以及一些注意事项: proxy_pass的链接无/ proxy_pass的链接有/ 第一种:proxy_pass的链接无/ proxy_pass中,不带『/』,则把『匹配字符串及后缀(/api/xxx)』均带给转发地址 # 效果为:http://xxx.xxx.com/a 阅读全文
posted @ 2021-09-16 18:13 Feng1024 阅读(2825) 评论(0) 推荐(0) 编辑
摘要: Cron 表达式生成器 https://www.bejson.com/othertools/cron/ Nginx 配置文件格式化工具 https://www.dute.org/nginx-config-formatter Java 正则表达式匹配 https://c.runoob.com/fron 阅读全文
posted @ 2021-09-15 15:20 Feng1024 阅读(39) 评论(0) 推荐(0) 编辑
摘要: const [searchDate, setSearchDate] = useState<any>({}) const searchFormList = useMemo<SearchFormItem[]>( () => { return [ { placeholder: '请选择日期', label 阅读全文
posted @ 2021-09-13 11:59 Feng1024 阅读(623) 评论(0) 推荐(0) 编辑
摘要: 在JavaScript中,对一般类型判空,我会使用双叹号 "!!"一般用来将后面的表达式强制转换为布尔类型的数据(boolean),也就是只能是true或者false; const demo = null; if (!!demo) { console.log(true) }else { consol 阅读全文
posted @ 2021-09-13 11:54 Feng1024 阅读(93) 评论(0) 推荐(0) 编辑
摘要: 当MySQL中的字段类型为tinyint(4)时,使用MyBatis Generator生成的实体类对应的字段类型为:Byte。 问题是什么产生的? MyBatis Generator 是通过 JavaTypeResolver 来实现关系映射的,官方文档解释: The element is used 阅读全文
posted @ 2021-09-09 14:38 Feng1024 阅读(3177) 评论(0) 推荐(0) 编辑
摘要: 入口 配置 配置设置 配置规则 注意:此处的替换无法实现计算的效果。 总结 由于替换无法进行计算,所以该功能不够实用 阅读全文
posted @ 2021-09-08 14:11 Feng1024 阅读(280) 评论(0) 推荐(0) 编辑
摘要: 通过本机Docker构建项目 环境准备 安装docker环境 安装Jenkins 执行以下命令,注意-u root是必须的 mkdir -p /DockerVolume/jenkinsHome docker run \ -u root \ --name jenkins-blueocean \ -d 阅读全文
posted @ 2021-08-25 13:50 Feng1024 阅读(315) 评论(0) 推荐(0) 编辑
摘要: 通过关键字设置变量 通过关键字ARG,ENV设置变量 ARG arg1=test ENV env1=production 注意: 不能通过表达如$(uname -a)进行设置,只能设置为常量 其中的差别,可以这么理解: ARG设置的变量在构建完成后,就会丢失。即在Docker中无法引用该变量 ENV 阅读全文
posted @ 2021-08-25 13:45 Feng1024 阅读(2379) 评论(0) 推荐(0) 编辑
摘要: 场景 由于原镜像中的/etc/apt/sources.list文件使用的源较慢,需要修改为国内的阿里云。可通过以下命令写入: RUN echo 'deb http://mirrors.aliyun.com/debian/ buster main non-free contrib\n\ deb htt 阅读全文
posted @ 2021-08-25 12:12 Feng1024 阅读(2271) 评论(0) 推荐(0) 编辑
摘要: 查看docker接口,一般为docker0 $ route 添加接口信任 sudo firewall-cmd --permanent --zone=trusted --add-interface=docker0 sudo firewall-cmd --reload # 添加允许ip地址伪装 sudo 阅读全文
posted @ 2021-08-24 17:49 Feng1024 阅读(2489) 评论(0) 推荐(0) 编辑