- 博客(56)
- 资源 (3)
- 收藏
- 关注
原创 Windows-Wireguard-Watchdog,Wireguard服务端DDNS客户端自动重连
使用此PowerShell脚本,可以让你的Wireguard保持稳定的连接,服务端ip变更客户端仍可自动重新连接。
2024-03-08 09:31:52 804 3
原创 阿里云SSL免费证书到期自动申请部署程序
阿里云的免费证书只有3个月的有效期,不注意就过期了,还要手动申请然后部署,很是麻烦,于是写了这个小工具。上班期间抽空写的,没有仔细测试,可能存在一些问题,大家可以自己clone代码改改,或者联系我改。
2024-02-22 17:37:09 529
原创 python脚本实现阿里云DDNS动态域名解析
自己在阿里云有域名,就不用花生壳了,写了个脚本实现动态域名解析。#!/usr/bin/pythonimport timeimport requestsfrom alibabacloud_alidns20150109 import models as alidns_modelsfrom alibabacloud_alidns20150109.client import Client as AlidnsClientfrom alibabacloud_tea_openapi import mode
2022-02-08 15:51:05 2311
原创 redis集群 windows 一键启动
抽空写了个脚本直接启动集群(2条消息) redis集群windows启动脚本-其它文档类资源-CSDN下载
2021-06-18 16:58:48 282
原创 Insufficient scope for this resource
Insufficient scope for this [email protected]: oauth2: resource: # oauth2 Server user-info-uri: http://localhost/user/infoOAuth2Resourceimport org.springframework.boot.SpringApplication;import org.springf
2021-01-12 16:06:44 2954 1
原创 wind10删除远程连接记录
win+R 输入 regedit 按回车打开注册表剪辑器计算机\HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Default
2020-11-09 23:27:55 572
原创 父pom中dependencyManagement版本优先级高于子module版本解决办法
父pom <dependencyManagement> <dependencies> <dependency> <groupId>com.alibaba</groupId> <artifactId>fastjson</artifactId> <version>1....
2020-04-10 09:17:10 1085
原创 el-element-admin keep-alive 不生效
const originRouter = { path: '/origin', component: Layout, redirect: '/origin/data-lineage', alwaysShow: true, name: 'OriginData', meta: { title: '元数据管理', roles: [Security.ORIGIN]...
2019-12-27 11:32:40 2811 1
原创 idea tomcat中文乱码 解决办法
idea.exe.vmoptions 和idea64.exe.vmoptions加入-Dfile.encoding=UTF-8下面的也加上
2019-04-28 09:50:16 528
原创 springboot 静态资源缓存设置
springboot 静态资源 js css 缓存设置@Configurationpublic class WebMvcConfiguration implements WebMvcConfigurer { @Override public void addResourceHandlers(ResourceHandlerRegistry registry) { ...
2018-12-29 17:35:24 3662
原创 docker mysql8.0 client does not support authentication protocol requested by server
docker mysql8 client does not support authentication protocol requested by server;consider upgrading MySQL client;开启远程访问权限就可以了按照官方的装https://hub.docker.com/_/mysql装完后 进入容器docker exec -it cont...
2018-12-18 14:59:48 429
原创 springboot2.0 Hystrix Unable to connect to Command Metric Stream
springboot2.0 Hystrix Unable to connect to Command Metric Streampom.xml <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-start...
2018-11-26 23:16:13 306
原创 springboot jpa 树对象 递归遍历知道当前第几层
最近想把家里的网站升级一下,这个防火布网站主要是把后台重新做一下,昨天写到了数据的显示,今天就写保存了。后台是用vue element写的,感觉这个框架非常好用,有兴趣的可以了解一下,这个tree支持拖拽的。我的愿望是娶个媳妇帮着设计界面,因为我做出的界面太丑了,有意的可以留言,我还没谈过恋爱呢(用我爸爸的话说还是小雏鸡呢),妳要抓紧联系我呀。分类对象:Categorypacka...
2018-10-19 22:44:46 7274 3
原创 上传jar包到maven官方仓库
参考:https://central.sonatype.org/pages/ossrh-guide.htmlhttps://www.sojson.com/blog/250.html写一遍我自己成功上传的整个流程,遇到的错误,记录下来。一、创建工单 1.注册账号 https://issues.sonatype.org/secure/Signup!default.jspa...
2018-09-29 18:15:29 661
原创 netty权威指南第二版源码
netty权威指南第二版源码 https://github.com/wuyinxian124/nettybook2
2018-09-12 23:16:56 5878
原创 七牛云覆盖上传缓存问题
1.官方刷新缓存https://developer.qiniu.com/fusion/kb/1325/refresh-the-cache-and-the-effect-of-timehttps://developer.qiniu.com/fusion/api/1229/cache-refresh2.资源访问路径后加版本http://xxx.com/1.png?v=123v后面的...
2018-08-01 16:49:58 2150 1
原创 nginx frp http/https 配置 (全部都是docker 安装)
操作系统 centos7一. frp服务端安装frp 地址:https://github.com/fatedier/frp本教程目前用的就是最新的版本 今天是2018年7月23日安装步骤1.下载源码根据对应的操作系统及架构,从 Release 页面下载最新版本的程序复制frps 和 frps.ini文件到同一个目录并创建Dockerfile2.修改文件 fr...
2018-07-23 16:48:25 5565
原创 springboot websocket stomp 小程序 群聊
前期准备项目地址 https://github.com/weiangongsi/websocket 已经实现了 双人对话 和 群聊申请一个ssl证书免费的就可以阿里云:https://common-buy.aliyun.com/?commodityCode=cas#/buy然后下载证书我们需要这个 .key 文件,把该文件放在spring boot项目resource...
2018-06-15 17:19:44 7948 9
原创 springboot ueditor 整合篇
一、上传文件到本地版本 项目地址:https://github.com/weiangongsi/ueditor-spring-boot-starter 文件导入 新建springboot项目 不需要下载本项目,jar包已经上传到maven仓库 pom文件引入 <dependency> <groupId...
2018-06-12 16:11:49 1818 1
原创 vue开发者工具vue-devtools-4.1.4_0.crx谷歌插件下载
版本5.1.1链接:https://pan.baidu.com/s/1JKGHnpGSY8ivPUOxBBgnRw提取码:7uv22019年4月18日版本5.1.0链接:https://pan.baidu.com/s/1kVPC-TrUs4_niYvaZ_JfAQ提取码:4d7s2018-06-03版本网盘地址:https://pan.baidu.com/s...
2018-06-03 09:42:48 38907 22
原创 springboot2.0事务不起作用
配置加了@EnableTransactionManagement方法上加了@Transactional(propagation = Propagation.REQUIRED, isolation = Isolation.DEFAULT, timeout = 36000, rollbackFor = Exception.class)不起作用。原因:Springboot2.0后,依然是使用jpa、Hi...
2018-06-01 11:47:29 3512
原创 Alibaba Java Coding Guidelines-1.0.4 p3c 阿里巴巴出品的java代码规范插件
Alibaba Java Coding Guidelines-1.0.4 阿里巴巴出品的java代码规范插件网盘地址https://pan.baidu.com/s/1DYJ1wpAoffJknpmmDj5mvA
2018-05-23 12:52:22 816
原创 MySQL实现按距离范围查找
创建表DROP TABLE IF EXISTS `pb_area`;CREATE TABLE `pb_area` ( `id` int(10) NOT NULL COMMENT 'ID', `areaname` varchar(50) NOT NULL COMMENT '栏目名', `parentid` int(10) NOT NULL COMMENT '父栏目', `shor...
2018-05-02 16:54:52 3405
原创 User must be authenticated with Spring Security before authorization can be completed.unauthorized
spring oauth2User must be authenticated with Spring Security before authorization can be completed.unauthorizedResourceServerConfiguration 和 SecurityConfiguration上配置的顺序, SecurityConfiguration一定要在Reso...
2018-04-28 16:00:23 8156 1
原创 springboot redis 使用 CrudRepository 类似jpa一样的效果
新建springboot项目 maven引入redis依赖<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId></dependency>配置文件a...
2018-04-11 21:57:38 2900
原创 RestTemplate 添加请求头headers和请求体body
//headers HttpHeaders requestHeaders = new HttpHeaders(); requestHeaders.add("api-version", "1.0"); //body MultiValueMap<String, String> requestBody = new...
2018-04-10 10:10:33 63862 1
原创 junit test Failed to load ApplicationContext Could not resolve placeholder 'jdbc.url' in string valu
报错 java.lang.IllegalStateException: Failed to load ApplicationContextCaused by: java.lang.IllegalArgumentException: Could not resolve placeholder 'jdbc.url' in string value "${jdbc.url}"定义一个 org.sprin...
2018-04-08 10:04:19 1179
原创 使用Hystrix实现容错
Hystrix是一个实现了超时机制和断路器模式的工具类库。参考上一节: 使用Feign实现声明式REST调用 创建项目在user-consumer pom中加入Hystrix 依赖<dependency> <groupId>org.springframework.cloud</groupId> <artifactId>s...
2018-04-06 22:02:02 528
原创 使用RestTemplate和Feign实现声明式REST调用+Ribbon负载均衡
本节讲的是消费服务 编写Eureka Service新建一个spring boot Maven项目,添加如下依赖<dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-netflix-eure...
2018-04-06 01:30:28 830
原创 springcloud eureka服务注册与发现
本节示例只提供服务注册,消费服务在后面的章节中Eureka的原理就不介绍了,直接写代码。编写Eureka Service新建一个spring boot Maven项目,添加如下依赖<dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-c...
2018-03-28 23:46:11 1119
原创 springboot thymeleaf 404 自定义处理
springboot使用 thymeleaf maven 加入 org.springframework.boot spring-boot-starter-thymeleaf如果没引入的话,URL正确也会404异常。处理404异常方法一:最简单的是在 project\src\main\resources\te
2018-01-05 18:51:24 4550
原创 springboot jdk8 LocalDate LocalDateTime jpa 映射字段是tinyblob 解决办法
springboot jdk8 LocalDate LocalDateTime jpa 映射字段是tinyblob 解决办法要映射为datetime类型 @SpringBootApplication@EntityScan(basePackageClasses = Jsr310JpaConverters.class)public class WeiAnApplication exte
2017-10-07 18:53:57 3626 1
原创 docker安装rabbitmq及插件启动
docker run -d --name rabbitmq --publish 5671:5671 \--publish 5672:5672 --publish 4369:4369 --publish 25672:25672 --publish 15671:15671 --publish 15672:15672 --publish 15674:15674\rabbitmq:3-manageme
2017-09-12 15:08:02 4710
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人