- 博客(66)
- 资源 (3)
- 收藏
- 关注
原创 spring boot 2.6.x 集成swagger3 启动报错解决方案
spring boot 2.6.x 集成swagger3 启动报错解决方案。
2022-08-12 13:51:56
946
原创 spring boot 中 spring mvc URL拦截和做接口版本管理
spring mvc 动态路由springboot 自定义RequestMappingHandlerMapping
2022-07-05 16:39:51
503
原创 spring boot中使用LdapTemplate操作ldap
配置LdapTemplateimport org.springframework.beans.factory.annotation.Autowired;import org.springframework.context.annotation.Bean;import org.springframework.context.annotation.Configuration;import org.springframework.ldap.core.LdapTemplate;import org.s.
2021-07-08 14:05:25
1987
1
原创 Vue+TypeScript+TSX
import {Component, Prop, Vue} from 'vue-property-decorator'import OtherComponent from '@/components/OtherComponent'@Component({ components: {OtherComponent}})export default class Exapmle extends Vue { // data public data1? string; public data2 num
2021-04-17 18:14:32
394
1
原创 Echars一些常用属性
setOption({ title: { // 官方文档: https://echarts.apache.org/zh/option.html#title text: '你的标题', // 标题 textStyle: { // 标题的样式 color: '#440055', // 标题的颜色 fontSize: '14px', // 字体大小 width: '100px', // 宽 height: '28px' // 高 }
2021-04-12 23:16:22
258
原创 单例模式
饿汉式public class Signal { private static Signal instance = new Signal(); private Signal(){} public static Signal getInstance() { return instance; }}懒汉式public class Signal { private static Signal instance; private Signal(){} public .
2021-03-12 14:14:24
109
原创 git配置代理 代理 socks5带用户名密码
官方语法:// http: git config [--global] http.proxy[protocol://][user[:password]@]proxyhost[:port]// https: git config [--global] https.proxy[protocol://][user[:password]@]proxyhost[:port]单个项目配置:git config http.proxy socks://user:password@localhost:1.
2021-02-26 10:05:09
7224
原创 浏览器的跨域Cors规则
跨域即非同源访问服务资源如:http://www.baidu.com/index.html的页面要用浏览器的XHR请求访问http://www.aliyun.com/api/apiMethod来请求数据,这种情况就属于跨域请求数据,在js中对接口发起的所有请求都属于XHR请求浏览器通过http返回报文的头信息识别服务器是否允许跨域,这是约定。浏览器主要通过服务器的响应中是否包含下面几个头信息来判断是否允许访问:Access-Control-Allow-OriginAccess-Co.
2021-01-26 14:25:16
802
原创 java linux上java进程消失 —— oom-killer
小的服务器可能由于内存不足在运行时会被系统的oom-killer杀掉进程,当服务无故消失时可以去系统日志中搜索一下是不是被系统干掉了cd /var/logdmesg | grep kill记得用root身份哦
2021-01-26 10:44:26
245
原创 docker国内镜像配置
编辑配置文件:sudo vi /etc/docker/daemon.jsonorsudo vim /etc/docker/daemon.json写入:{ "registry-mirrors": [ "https://md4nbj2f.mirror.aliyuncs.com", "https://dockerhub.azk8s.cn", "https://hub-mirror.c.163.com" ]}保存退.
2021-01-24 20:39:21
172
转载 Centos 7 docker安装mysql5.7
https://www.cnblogs.com/wjw1014/p/12149399.html
2021-01-10 16:33:25
104
原创 nodejs脚本使用jQuery
首先创建一个文件夹在文件夹下执行下面的命令# 执行后一路回车就行npm init# 然后安装依赖npm i jsnode jquery完成后在文件夹下创建一个index.js文件此时该文件夹下结构如下:/…/node_modules…package-lock.json…package.jsonindex.js代码const jsdom = require('jsdom')const {JSDOM} = jsdom;const {document} = (ne.
2021-01-07 11:42:14
813
原创 element-ui 封装table组件(自动填满父容器高度,固定头部滚动)
写在前面:element-ui的表格组件是常用的组件之一,唯一不太好的是,当页面组件高度由百分比算出来的时候想让头部固定滚动需要另写JavaScript计算,所以将计算封装在了组件里面(el-table-plus),只映射了部分常用的属性,如果需要可以自行映射其他属性<!-- el-table-plus --><template> <div style="height: 100%"> <el-table ref="table" .
2020-12-11 11:31:22
3934
1
原创 vue2-ace-editor自定义语法提示
vue2-ace-editor自定义语法提示前言:网上找了很多不是很系统,这里发一个我自己成功的一个例子代码:<!-- editor --><template> <AceEditor v-model="value" @init="init" :enableBasicAutocompletion="true" :enableLiveAutocompletion="true" :enableSnippets="true"
2020-11-26 19:32:18
2629
3
原创 idea好用的插件
CodeGlanceCodeGlance可以让你的idea像sublime编辑器一样在右边滚动条旁边生成一个代码缩略图的滚动条Material Theme UIidea切换主题MybatisX可以在dao接口和xml之间进行点击跳转,检查xml和接口之间的一些错误One Dark themeidea 一款好看的主题...
2020-08-03 13:44:22
12086
原创 element-ui表单输入框开启记忆功能
<el-form ref="form" :model="formData" label-width="120px"> <el-form-item prop="item1" label="示例1:" :required="true" error="请输入值" > <!-- name 要和 el-form-item的prop 以及绑定的变量名一致 --> <el-input name="item1" auto-comple
2020-06-22 15:43:29
18954
15
原创 JavaScript文件下载 不跳标签页。支持get、post
利用表单提交方式,downloadFile(url, method, params) { if (!document.getElementById("myIframe")) { let iframe = document.createElement('iframe'); iframe.id = "myIframe"; iframe.name = "myIframe"; iframe.style = "display:none"; document.body..
2020-06-12 16:54:14
13512
原创 vue封装echars通用组件
<!-- Echar --><template> <div :style="{'width': width, 'height': height}" ref="area"></div></template><script>// 引入 EChartsimport echarts from 'echarts'export default { name: "EChar", props: { /*可以是百分比也可
2020-05-27 15:12:29
13414
原创 java 3个线程分别打印A、B、C打印10次退出
要求: java使用3个线程分别打印A、B、C,打印10次后自动退出,输出顺序不能乱方式1:public class Main{ public static void main(String[] args) { AtomicInteger x = new AtomicInteger(0); final Printer a...
2020-05-09 17:31:57
13675
原创 CSS3 动画 简单的应用
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>animal frame</title> <style> .container { height: auto;...
2020-04-07 22:31:05
13601
原创 JavaScript分割文件(Blob对象|File对象)
在遇到较大文件上传时往往需要对文件进行分割上传,整理一小段文件分割例子<input type='file' id='fileSelector' /><button onclick="sliceFile">分割</button><script>let SLICE_SIZE = 1024 * 1024;function sliceFile(...
2020-03-31 14:54:59
16425
1
原创 微服务nacos+spring cloud+dubbo一起集成
父项目<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="htt...
2020-03-20 15:52:03
14552
原创 maven-setting
<?xml version="1.0" encoding="UTF-8"?><settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="h...
2020-03-20 11:23:46
13662
原创 java打印任意边长的菱形
public static void printSomeStar() { Scanner sc = new Scanner(System.in); try { System.out.print("请输入菱形边长:"); int a = sc.nextInt(); for (int i = 1; i <= a; i++) { ...
2020-02-04 22:06:09
13730
原创 python爬取彩票排列三开奖结果
import gzipimport refrom urllib import requestimport xlwtfrom bs4 import BeautifulSoup# 参数说明:# period: 开奖期数# redo_num: 重试次数,默认是0,每错误一次回调时会+1,默认就好# max:最大重试次数,默认5def get_pls(period, r...
2020-01-22 15:13:38
15878
原创 java和map、reduce
MapReduce是一种编程模型,用于大规模数据集(大于1TB)的并行运算。概念"Map(映射)“和"Reduce(归约)”,是它们的主要思想,都是从函数式编程语言里借来的,还有从矢量编程语言里借来的特性。它极大地方便了编程人员在不会分布式并行编程的情况下,将自己的程序运行在分布式系统上。当前的软件实现是指定一个Map(映射)函数,用来把一组键值对映射成一组新的键值对,指定并发的Reduce(归...
2020-01-21 17:29:21
14670
原创 快速排序-c\c++版、java版、python版、JavaScript版
c\c++版void quick_sort_r(int *arr, int start, int end){ if (start > end) return; int left = start, right = end; int mid = arr[start]; while (left < right) { ...
2019-09-05 10:23:06
11183
原创 选择排序-c\c++版、java版、python版、JavaScript版
c\c++版void selection_sort(int *arr, int len){ for (int i = 0; i < len; ++i) { int min = i; for (int j = i + 1; j < len; ++j) if (arr[min] > arr[j]) ...
2019-09-05 10:09:09
11086
原创 冒泡排序-c\c++版、java版、python版、JavaScript版
c\c++版#include<stdio.h>void bubble_sort(int *arr, int len){ for(int i = 0; i < len; ++i) { for(int j = 0; j < len - i - 1; ++j) { if(arr[j] > arr[j+1]) { // 交换 ...
2019-09-04 18:24:40
11164
原创 python splinter api整理
官方文档:Splinter — Splinter 0.10.0 documentationfrom splinter import Browser # 导入包browser = Browser() # 创建一个实例# if you don’t provide any driver to the Browser function, firefox will be used# 如果没有...
2019-09-02 18:16:48
12027
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人