JS前端批量下载大文件并打包zip(StreamSaver.js) 官网地址直接上demo代码,在官网demo基础上修改:<!DOCTYPE html><html lang="en" dir="ltr"> <head> <meta charset="utf-8"> <title>Saving multiple files as zip</title> </head> <body> <button id="$start">
MySql 去除字符串前缀,两边,后缀 效果:语句:select supplierNum, trim(LEADING '0' from supplierNum) from t_claim_saleclaim Trim 函数:TRIM([{BOTH | LEADING | TRAILING} [str_to_remove] FROM] string)这里,参数BOTH:表示要从字符串中删除的左右前缀。LEADING:表示只删除前导前缀。TRAILING:表示仅删除尾随前缀。Str_to_remove:
Grails 自定义排序(order) Dropdown.withCriteria { 'in'('state', ['General','CA']) projections { property('state') property('dropDownNames') property('sectionName') property('prefix') property('displayOrder') sqlProj.
el-table 固定列滚动条错乱(设置滚动条样式) 问题现象如下:需要了解设置的滚动条宽度,如:解决办法:.el-scrollbar__wrap::-webkit-scrollbar { width: 12px; height: 12px; background-color: transparent;}
SpringCloud或SpringBoot+Mybatis-Plus+ThreadLocal利用AOP+mybatis插件实现数据操作记录及更新对比 SpringCloud或SpringBoot+Mybatis-Plus+ThreadLocal利用AOP+mybatis插件实现数据操作记录及更新对比 - TopSkyhua - 博客园
Mysql 根据值查询出整个数据库中所在的表和字段 DROP TABLE if EXISTS temp;CREATE TABLE temp(tablename VARCHAR(255),LieName VARCHAR(255));delimiter $$DROP procedure IF EXISTS getDataByDbName $$CREATE procedure getDataByDbName(in dbName VARCHAR(255),IN ziduan VARCHAR(255))BEGINDECLARE num I.
Mysql查看表容量 select table_schema as '数据库',table_name as '表名',table_rows as '记录数',truncate(data_length/1024/1024, 2) as '数据容量(MB)',truncate(index_length/1024/1024, 2) as '索引容量(MB)'from information_schema.tableswhere table_schema='qms2'order by data_length desc,.
Mybatis plus 更新数据的某个字段为Null,未更新 增加全局配置:(select-strategy / insert-strategy / update-strategy)## 该配置节点为独立的节点mybatis-plus: global-config: db-config: logic-delete-value: 1 # 逻辑已删除值(默认为 1) logic-not-delete-value: 0 # 逻辑未删除值(默认为 0) select-strategy: DEFAULT ins
Spring boot 2.4 fastjson转换器 package com.middol.core.config;import com.alibaba.fastjson.serializer.SerializerFeature;import com.alibaba.fastjson.support.config.FastJsonConfig;import com.alibaba.fastjson.support.spring.FastJsonHttpMessageConverter;import lombok.extern.slf4j.Slf4j.
Grails3.3.9 升级Grails4.0.9 登录不了,后台不报错(There is no PasswordEncoder mapped for the id “null“) 提示There is no PasswordEncoder mapped for the id "null"security plugin 提示解决办法,更新用户表中的密码,增加前缀:{bcrypt}update t_system_user set password = concat('{bcrypt}', password)
axios get请求传递数组参数 var ttt = [ {column: "username", type: "EQ", values: "ts"}, ] var test = { pageNum: 1, pageSize: 30, params: JSON.stringify(ttt) } // $.ajax({ // type: "GET", // url: "http://localhost:8099/api/sy.
Spring boot + mybatis plus 通过反射实现动态Wrapper 目的后台管理系统,存在很多的配置表(单表)的crud操作,查询条件非固定,如果需求变化频率很高的话,每次增加一个字段需要单独增加查询字段,很是麻烦效果实现步骤1、构建查询规则实体类package com.middol.appserver.core.base;import com.middol.appserver.core.enums.SearchConditionTypeEnum;import lombok.Data;/*** @Description: 查询条件
mybatis-plus Wrapper学习 package com.middol.appserver.sys;import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;import com.baomidou.mybatisplus.core.toolkit.Wrappers;import com.middol.appse.
Grails4 使用LibreOffice + jodconverter 转换Office为PDF文件,实现预览 1、下载LibreOffice,官网地址注意:官网可能下载不了,这里推荐用360下载2、引入组件(jodconverter)compile 'org.jodconverter:jodconverter-local:4.3.0'compile 'org.jodconverter:jodconverter-spring-boot-starter:4.3.0'3、添加配置jodconverter: local: enabled: true o.
Grails4 封装MeiliSearch搜索引擎 1、build.gradle引入repositories { maven { url "https://repo.grails.org/grails/core" } maven { url "https://dl.bintray.com/zhangjiayu139/plugins" }}compile 'middolmeilisearch:middolMeiliSearch:0.1'2、编写MeiliSearchUtils工具类package middol....
Grails4 rest-api 发送html邮件,引用GSP发送 1、build.gradle 引入GSP模板apply plugin:"org.grails.grails-gsp"dependencies { compile "org.grails.plugins:gsp"}2、编写GSP模板3、使用GSP发送html信息4、效果