自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(56)
  • 资源 (1)
  • 收藏
  • 关注

原创 缓存同步方式

缓存同步

2022-09-05 15:34:33 110 1

原创 防止雪崩问题

熔断

2022-08-27 21:01:33 159

原创 java汉诺塔

/** * @author by cly, Date on 2021/9/28. */public class HanNuoTa { public static void main(String[] args) { move("A", "C", "B", 4); } /** * starPlace 起始位置 * endPlace 目标位置 * * n 移动个数 */ static void move(

2021-09-28 12:04:33 118

原创 idea快捷键

2021-09-05 10:42:24 95

原创 Debbo使用

一:服务器安装Zookeeper1:安装jdk2:把zookeeper压缩包上传到linux3:解压该压缩包tar -zxvf 文件名(ZookeeperZIP)4:进入ZookeeperZIP 创建data目录mkdir data5:进入conf目录,吧zoo_sample.cfg改名为zoo.cfgcd confmv zoo_sample.cfg zoo.cfg6:打开zoo.cfg文件,修改data属性 :dataDir=、root/zookeeper-3.4.6/data二:启

2021-03-30 17:07:31 142

原创 maven下载私服

1:maven的settings.xml文件配置下载模板public代表仓库组 包含四种类型的仓库<profile> <id>dev</id> <repositories> <repository> <id>nexus</id> <url>仓库地址 nexus仓库地址</url> <!--是否下载release构件--> <release>

2021-03-23 10:13:06 180

原创 项目发布到maven私服

1:修改maven的setting.xml文件将以下标签粘贴到servers标签 内,id与pom.xml内配置的名字相同<server> <id>releases</id> <username>admin</username> <password>123123</password></server><server> <id>snapshots</id> &l

2021-03-23 09:40:13 70

原创 Tomcat部署ssm项目采坑记录

仅供参考 并不专业版本: idea:2020 jdk:13 tomcat:8.0.x错误1:org.apache.catalina.startup.Catalina排错:先看一下日志文件有没有打印,若没有错误信息,tomcat下双击startup文件启动tomcat看看能不能启动,若不能,jdk版本与tomcat不兼容(本人就是这种问题)解决:下载jdk11 (建议相关东西卸载干净,注册表上面的,减少不必要麻烦)而后居然还是这个问题,索性下载tomcat10----------------

2021-03-15 10:53:36 276

原创 aop注解方式实现

2021-03-12 00:17:16 88

原创 aopxml配置

在这里插入图片描述

2021-03-11 15:36:50 89

原创 maven依赖冲突解决

1:调整依赖顺序(不推荐)某一jar包前面引入后,后面再次引入将失效2:将冲突jar包单独引入根据jar包引入路径近优先,手动引入的jar包比第三方附带引入的jar包优先级高3:使用exclusion标签引入依赖是使用excluson排除该冲突依赖,使其不再引入...

2021-03-05 01:15:22 111 1

原创 记一次es6扩展运算符报错的解决办法

使用Vuex,取值不支持es6…编译错误,没有安装es6解析依赖解决:npm install --save-dev babel-plugin-transform-object-rest-spread在.babelrc文件中配置: {“plugins”:[“transform-object-rest-spread”]}

2020-10-26 16:32:26 1362

原创 webpack

webpack可以将模块化文件进行打包,(不适用模块化会有变量冲突等问题)处理成浏览器可以识别的js文件,浏览器不识别common.js es6等模块化语法1、首先创建文件夹,添加两个js文件,用模块化方式开发,然后添加html,一般都是在htnl中使用script标签引入js文件,但是模块化之后需要webpack打包,html中引入打包后的js文件文件目录如下mathUtils.jsfunction add(num1, num2){ return num1+num2;}functi

2020-10-20 01:29:40 122

转载 ie下不支持最新API

原文:https://www.cnblogs.com/yalong/p/9988615.html需要ie11 但是提示Symbol对象未定义原因:ie10浏览器解析不了es6的语法,需要我们使用babel(Babel是一种工具链,主要用于将ECMAScript 2015+代码转换为当前和旧版浏览器或环境中的向后兼容版本的JavaScript)。但是Babel 默认只转换新的 JavaScript 句法(syntax),而不转换新的 API ,比如 Iterator、Generator、Set、Map

2020-10-15 11:43:35 534

原创 vue路径

./ // 上一级目录下 import SonSlotComponent from "./SonSlot" // 同级目录下 import SonSlotComponent from "../SlotDemo/SonSlot"; // 上级目录下 // @代表src目录 import SonSlotComponent from "@/components/SlotDemo/SonSlot";

2020-10-12 10:35:41 132

原创 js拼接html

// js中拼接html包括函数及其方法 diagnoseCard += " <div " + "οnclick=getChecksAndTreatmentPlan(this,'" + info[i].name +"')" + ">\n" + 123 "</div>"; // this是当前div对象,info[i].name

2020-09-07 17:13:47 267

原创 关于HasRouter和BrowserRouter

1:BrowserRouter里面嵌套HashRouter时,HasRouter路径从“/”开始<HashRouter> <Switch> {/*HashRouter 为神魔不能重定向*/} <Redirect to={{ pathname: '/son1' }} /> {/* <Redirect exact from={"/content"} to={'/content/son1'}

2020-08-13 15:35:16 795

转载 Chrome不保存sessionId,Chrome浏览器改变SameSite设置

原文:https://www.lizenghai.com/archives/56035.html#i-2Chrome 80 默认将没有设置SameSite设置为SameSite=Lax谷歌浏览器地址栏输入:chrome://flags/找到:SameSite by default cookies、Cookies without SameSite must be secure设置上面这两项设置成 Disable...

2020-08-13 13:53:19 2579

转载 登陆后sessionId一直更新

前端用的React,原因是fetch函数跨域设置原文:https://www.cnblogs.com/wonyun/p/fetch_polyfill_timeout_jsonp_cookie_progress.htmlfetch option 添加一下属性: credentials: ‘include’, // include, *same-origin, omit

2020-08-04 11:19:10 475

原创 js正则中文英文判断

let reg = new RegExp(’[0-9a-zA-Z]+’);console.log( reg.test(5)); // true

2020-07-29 17:36:45 1544 1

原创 js深拷贝

对象深拷贝let person = { name: "1", age: "2"};let p2 = {...person};let p3 = person;p2.name = "2";console.log(person.name); // 1p3.name = "3";console.log(person.name); // 3数组let arr = [ 1, 2, 3];let arr3 = [...arr];arr3[0] = 31;console.log(

2020-07-07 15:02:26 62

原创 react developer tools

下载链接:https://chrome.zzzmh.cn/info?token=fmkadmapgofadopljbjfkapdkoienihi下载完拖拽到chrome扩展程序页面

2020-06-04 11:00:03 140

原创 react 实现confirm

原博客忘记哪个了,再次感谢原作者。原文是js,我这是用的React,原理就是对hide属性的控制html,body { margin: 0; padding: 0; font-family: "Microsoft YaHei";}.wrap-dialog { position: fixed; top: 0; left: 0; width: 100%; height: 100%; font-size: 16px; text-align: center; z-

2020-05-27 13:52:34 3265

原创 react返回上一页

import {createHashHistory} from 'history' ;const history = createHashHistory();//返回上一页这段代码段代码 goBackPage = () => { history.goBack(); //返回上一页这段代码 }; <div> <button type="button" className="btn btn-link" onClick={ ()=&

2020-05-25 10:58:10 1020

原创 隐藏滚动条

.noScroll::-webkit-scrollbar {width: 0 !important}

2020-05-20 17:06:27 101

原创 React子组件内部变量不更新有缓存

1:在组件外所在的div添加key2:使用state,清除组件元素this.botom_element = "";this.setState({ _render: !this.state._render }, ()=>{ this.botom_element = <Radio data={ newData } />}) 清除组件所在元素,渲染,再次传入新数据...

2020-04-08 23:24:34 1104

原创 display:inline-block元素上下不对齐

2020-04-02 09:41:27 436

原创 node读取excel

//生成sql‘const mysqlx = require("@mysql/xdevapi");let xlsx = require('node-xlsx');let sheets = xlsx.parse('G:\\data.xlsx');item_data();async function item_data(){ sheets.forEach(function...

2020-03-27 14:07:52 248

原创 java读取doc

package com.test;import com.spire.doc.Document;import com.spire.doc.Section;import com.spire.doc.documents.Paragraph;import java.io.File;import java.io.FileWriter;import java.io.IOException;i...

2020-03-25 17:19:25 381

原创 react html2canvas生成pdf

html2canvas(document.getElementById("_container")).then(function (canvas) { const contentWidth = canvas.width; const contentHeight = canvas.height; const pageData = canvas.toDat...

2020-03-25 17:06:58 1830

原创 react路由(缓存页面)

import {HashRouter} from 'react-router-dom';import {CacheSwitch, CacheRoute} from 'react-cache-router'; //所需包class SymptomRouter extends React.Component{ render() { return <HashRouter&...

2020-03-25 10:04:18 2674 1

转载 react端口号

https://blog.csdn.net/u010565037/article/details/99438292?depth_1-utm_source=distribute.pc_relevant.none-task&utm_source=distribute.pc_relevant.none-task这个不管用不知道为什么“scripts”: {“start”: “set POR...

2020-03-25 09:52:10 187

原创 渐变色

'background': 'linear-gradient(to top right, #BA55D3 0%, #800080 25%, #8B008B 100%)'

2020-03-25 09:45:42 97

原创 reactRouter 参数对象

<Link to={ { pathname: '/particulars', state: { drug: drug} } } target="_blank"> <div style={ { color: 'blue', fontSize: '1.1rem' } } dangerouslySetInnerHTML={ { __html: drug.sho...

2020-03-24 16:22:37 226

原创 node数字转日期

function formatDate(numb, format){ const time = new Date((numb - 1) * 24 * 3600000 + 1); time.setYear(time.getFullYear() - 70); const year = time.getFullYear() + ''; const month = time.getMon...

2020-03-24 14:24:28 319

原创 html生成pdf

html2canvas(document.getElementById("_container")).then(function (canvas) { //打印 //window.print(canvas); const contentWidth = canvas.width; const contentHeight = canvas.height; ...

2020-03-18 10:26:48 105

原创 node读取docx并写入数据库

var mammoth = require("mammoth");console.log(pathContent);mammoth.extractRawText({path: pathContent}) //读取docx文件 .then(function(result) { execute_mysql( 122, result.value); })...

2020-03-11 14:07:20 706

原创 node读取excel

let xlsx = require('node-xlsx');let sheets = xlsx.parse('E:\\微信文档\\WeChat Files\\mxds123456\\FileStorage\\File\\2020-03\\101-200\\101.docx');sheets.forEach(function(sheet) { let data = sheet.d...

2020-03-11 14:02:35 559

原创 node读取docx文件并写入数据库

const mysqlx = require("@mysql/xdevapi");const path = "E:\\微信文档\\WeChat Files\\mxds123456\\FileStorage\\File\\2020-03\\101-200";const fs = require('fs');const iconv = require("iconv-lite");var mam...

2020-03-09 17:05:49 1029

原创 从零用webstorm创建vue项目

前几天买了新电脑,准备入手vue项目,配置了一下详细教程:https://blog.csdn.net/weixin_40760196/article/details/799526521、首先下载webstorm,官网安装下载就好啦,没什么难度,不说啦2、其次安装node,官网找到node,下载安装,安装完测试一下验证命令:node -vnpm -v3、安装淘宝镜像:npm instal...

2020-02-26 23:13:26 858 1

High сontrast.jar

高亮紫黑主题

2019-08-06

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除