
笔记
白云远去
简单一点
展开
-
桌面开发-学习笔记
注意:使用regasm命令生成tlb:regasm路径 dll路径 /tlb。delphi自定义控件需要将pas或dcu源文件路径添加到library。delphi调用c#编写好的dll。最小化图标@[TOC]测试。原创 2023-05-16 10:56:28 · 1197 阅读 · 0 评论 -
docker直接部署mysql、redis
docker pull mysql:5.7.19docker pull redis创建以下目录结构MySQL在conf文件夹创建my.cnf并粘贴以下内容[client]#password = your_passwordport = 3306socket = /tmp/mysql.sock[mysqld]binlog_cache_size = 64Kthread_stack = 256Kjoin_buffer_size = 2048Kquery_cache_type =原创 2022-03-01 22:12:57 · 361 阅读 · 1 评论 -
基础linux命令
pwd:查看当前目录路径docker search xxx:搜索xxx信息whereis xxx:查看该目录路径原创 2022-03-01 12:56:32 · 689 阅读 · 0 评论 -
docker容器访问宿主机redis和mysql出错解决
该服务器启用了防火墙,防火墙把6379的端口的访问授权给docker0网卡访问即可firewall-cmd --permanent --zone=trusted --change-interface=docker0firewall-cmd --reload原创 2022-03-01 12:43:05 · 1362 阅读 · 0 评论 -
Vue的watch监听用法
watch用法 watch: { 'info.pageView': { // 在数据发生变化的时候才执行 handler handler(newName, oldName) { let arr = new Array(15) return newName == undefined ? arr : newName }, // 深度监听对象属性 deep: true, // 如果我们需要在最初绑定值得时候也执行函数,就需要用到 immediate 属性。原创 2022-03-01 12:42:13 · 471 阅读 · 0 评论 -
linux定时备份mysql数据库
编写shell脚本#! /bin/bash# mysql数据库用户和密码user=rootpass=123456port=3306# 需要定时备份的数据表列表dbNames=(innovate_admin innovate_all training)# 每次的备份数据以日期创建文件夹存放,同时删除过期备份# 此处以保留1个月的备份数据为例DATE=`date -d "now" +%Y%m%d%H`ODATE=`date -d "-1 month" +%Y%m%d%H`newdir.转载 2022-02-22 16:13:32 · 314 阅读 · 0 评论 -
sql语句笔记
1. mybatis中<小于号,>大于号2. 删除两个表中的数据delete employee, employeeSkillsfrom employee, employeeSkills, departmentwhere employee.employeeID = employeeSkills.employeeIDand employee.departmentID = department.departmentIDand department.name='Finance原创 2022-02-17 22:39:57 · 595 阅读 · 0 评论 -
mysql各种foreach语句(包含批量增、删、改)
只更新一个字段,简单Case函数 <update id="updateCdIdentityOrder" parameterType="java.util.Map"> update cd_identity_order <trim prefix="set" suffixOverrides=","> <foreach collection="list" separator="" item="this" open="name原创 2022-02-16 17:16:31 · 5356 阅读 · 2 评论 -
自定义注解结合pageHelper实现分页
import cn.hutool.core.convert.Convert;import cn.hutool.core.lang.Validator;import com.github.pagehelper.PageHelper;import com.github.pagehelper.PageInfo;import com.gxuwz.common.AjaxResult;import com.gxuwz.utils.ServletUtils;import org.aspectj.lang.Jo原创 2021-12-12 18:40:01 · 606 阅读 · 0 评论 -
nginx配置(高级)
代理到同一二级域名的不同地址 server { listen 80; server_name 二级域名; location /prod-api { proxy_pass http://IP地址或域名:8085; root html; index index.html index.htm; } location /dev-api {原创 2021-10-27 23:14:57 · 1752 阅读 · 0 评论 -
promise同步处理
// 获得文章类型 getType() { return new Promise((resolve, reject) => { try { this.request(this.api.getArticleType, {}, 'GET', 'application/json', 1).then(res => { this.tabs = res.rows.map(item => item.typeLabel) resolve...原创 2021-10-15 21:59:31 · 7708 阅读 · 0 评论 -
后端导出excel自定义样式(easyExcel)
vue页面 /** 导出按钮操作 */ exportClick() { this.$confirm('是否确认导出所有离寝情况?', "警告", { confirmButtonText: "确定", cancelButtonText: "取消", type: "warning" }).then(() => { this.exportLoading = true; axios.requ原创 2021-09-20 11:06:37 · 3659 阅读 · 5 评论 -
前端导出excel自定义样式(行高除外)
前端导出excel需要用到的依赖有xlsx、xlsx-styleimport XLSX from 'xlsx';import XLSXStyle from 'xlsx-style';npm install后xlsx-style会报错,只需在vue.config.js中加上 externals: { './cptable': 'var cptable' }封装好的的js工具类,两种方法,一种传dom,一种传数据、表头在这里插入代码片// 源码什么的都不需要改动imp原创 2021-09-20 10:27:39 · 1587 阅读 · 3 评论 -
css笔记
text-indent: 2em;display: -webkit-boxdisplay需要是块元素缩进才能生效原创 2021-09-04 09:48:45 · 106 阅读 · 0 评论 -
easyexcel导出动态头、指定列、自定义样式(不创建对象)
Controller: // 标题样式 WriteCellStyle headWriteCellStyle = EasyExcelUtil.getHeadStyle(); // 这个策略是 头是头的样式 内容是内容的样式 其他的策略可以自己实现 HorizontalCellStyleStrategy horizontalCellStyleStrategy = new HorizontalCellStyleStrategy原创 2021-08-30 11:52:01 · 17066 阅读 · 2 评论 -
微信小程序的地图选择及navigateBack传参
var QQMapWX = require('../../utils/qqmap-wx-jssdk.js');var qqmapsdk;Page({ data: { latitude: 0,//地图初次加载时的纬度坐标 longitude: 0, //地图初次加载时的经度坐标 name:"", //选择的位置名称 }, onLoad: function (options) { // 实例化API核心类 qqmapsdk = new QQMapWX({原创 2021-05-12 16:35:01 · 184 阅读 · 0 评论 -
css图标与文字同一列对齐与同一行对齐
同一列对齐:flex-direction:column;html:<view class="vol-meta-title"> <text style="font-size: 17px;">{{desc.name}}简介</text> <view class="info" bindtap="click"> <navigator style="display:flex;flex-direction:column;jus.原创 2021-04-27 09:56:53 · 1384 阅读 · 0 评论