08 2022 档案
摘要:DB URL中新增&allowPublicKeyRetrieval=true 如:spring.datasource.url=jdbc:mysql://127.0.0.1:3306/dbname??useUnicode=true&characterEncoding=utf8&useSSL=false
阅读全文
摘要:原 sun 加密: import sun.misc.BASE64Encoder; new BASE64Encoder().encode(encrypted) 修改后 import org.apache.commons.codec.binary.Base64; Base64.encodeBase64S
阅读全文
摘要:vue的 mounted钩子函数中,监听 mounted() { //监听键盘Esc按键事件 let self = this; this.$nextTick(function() { document.addEventListener('keydown', function(e) { //此处填写你
阅读全文
摘要:module.exports = { env: { test: { presets: [ [ '@babel/preset-env', { targets: {node: 'current'}, } ] ] } }, presets: ['@vue/cli-plugin-babel/preset',
阅读全文
摘要:本来这很简单,不需要写的,但是以后如果忘了,直接copy也是比较好的 前提:正常安装git,正常安装vscode 1. 插件方式: 1.1 打开VS Code ,安装GitLens — Git supercharged,版本:v11.1.3,安装后重启VS Code 外网:使用VS Code 左侧菜
阅读全文
摘要:# SELECT row_num(),* FROM TABLE_NAME; SET @i=0; update TABLE_NAME h, (SELECT COL_A,COL_B,@i:=@i+1 AS 'need' FROM TABLE_NAME ) n set h.id = n.need wher
阅读全文
摘要:import java.io.PrintWriter;import java.io.StringWriter;import java.text.SimpleDateFormat;import java.util.Date; //获取崩溃信息 final Thread.UncaughtExceptio
阅读全文