- 博客(69)
- 收藏
- 关注
原创 Vite图片路径
只需要引入单个图片<template> <el-image :src="example" :preview-src-list="[example]" :initial-index="0" fit="cover" /></template><script>
2022-05-17 09:34:12
1474
原创 git强制刷新分支,设置proxy
强制刷新分支git fetch --allgit reset --hard origin/devgit pull
2022-04-18 09:09:47
491
原创 旧git手记
已经用不太到的命令行方式git init xxxcd xxxecho '123' >> README.MFgit hash-object -w README.MFgit cat-file -p af766a240be8f9bcf19d51dd92a4080f368574a1git add README.MFgit status 删除临时 git rm --cached README.MFgit add -Agit commit README.MF -m '注解'git r
2022-04-18 09:07:09
155
原创 Vue3安装Vuetify和使用Fontawesome6
vue3需要使用3版本的vuetify"vuetify": "^3.0.0-beta.0",首先项目里需要有fontawesome,提示:css和webfonts文件夹即可src下新建plugins文件夹,命名例如vuetify.jsimport '@/assets/css/fontawesome6/css/all.min.css'import 'vuetify/lib/styles/main.sass'import { createVuetify } from 'vuetify'impor
2022-04-14 16:04:30
2074
2
原创 CSS淡出
<div class="build-in-scale-up" :class="{'build-in-animate':buildUp}"></div>.build-in-scale-up.build-in-animate { opacity: 1; transform: scale(1) translateY(0);}.build-in-scale-up { opacity: 0; transition: opacity .7s cubic-bezier(0
2022-03-17 17:29:50
1049
原创 CSS光标闪烁
<span class="animation-is-typing"></span>.animation-is-typing { position: relative;}.animation-is-typing::before { position: absolute; top: 0px; right: -0.8em; bottom: 0px; display: block; height: 100%; margin-top: auto;..
2022-03-17 17:28:12
1501
原创 mvc路径传参多个参数
例如:请求/xxx接口需要用路径传参传两个参数 @GetMapping("/xxx/{param}/**") public void xxx(@PathVariable String param, HttpServletRequest request) { final String path = request.getAttribute(HandlerMapping.PATH_WITHIN_HANDLER_MAPPING_ATTRIBUTE).toString(
2022-03-07 14:42:45
1839
原创 webflux异步调用
被调用方法: public ApiResult getXXXXX() { Mono<ApiResult> toMono = webBuilder.baseUrl("lb://" + ServiceNameConstant.ADMIN).build().get() .uri(uriBuilder -> uriBuilder.path("/getXXXXX")// .quer
2022-02-28 16:59:32
976
原创 Redisson如何加锁
import org.redisson.RedissonMultiLock;import org.redisson.RedissonRedLock;import org.redisson.api.RLock;import org.redisson.api.RedissonClient;import java.util.concurrent.ExecutionException;import java.util.concurrent.Future;import java.util.concurr
2022-01-13 08:53:08
1686
原创 排查SpringCloudGateway的readAddress(..) failed: Connection reset by peer问题(利用arthas)
问题[id:48b8a8f5-1, L:/网关:37187 - R:应用/应用:应用端口] The connection observed an error, the request cannot be retried as the headers/body were sentio.netty.channel.unix.Errors$NativeIoException: readAddress(..) failed: Connection reset by peer[2021-12-28T11:31:
2021-12-28 16:51:56
15990
7
原创 Vue3迁移笔记(持续更新2022/3/18)
vue3迁移vueRouter4.x、vue3迁移vuex4、vue3实例化、vue3setup()函数、vue3methods、vue3computed、vue3watch、vue3生命周期钩子
2021-12-23 16:24:23
1615
原创 问题修复 No serializer found for class org.hibernate.proxy.pojo.bytebuddy.ByteBuddyInterceptor
报错详情org.springframework.data.redis.serializer.SerializationException: Could not write JSON: No serializer found for class org.hibernate.proxy.pojo.bytebuddy.ByteBuddyInterceptor and no properties discovered to create BeanSerializer (to avoid exception, di
2021-10-22 15:19:44
2521
原创 【js注入】全局修改js请求方式、url参数等
所需工具chrome、chrome暴力猴插件/chromeTampermonkey油猴插件脚本①——Ajax hook!function (ob) { ob.hookAjax = function (funs) { window._ahrealxhr = window._ahrealxhr || XMLHttpRequest XMLHttpRequest = function () { this.xhr = new window._ahr
2021-10-13 10:36:54
1154
原创 Srping @Cacheable读取配置常量
属性①:value String REDIS_DATABASE="database";cacheable的name。默认会在后面加上双冒号,手动调用加上::属性②:key String REDIS_KEY_PREFIX="'wtf_'";需要使用单引号’,防止被表达式解析简单使用@Cacheable(value = RedisConstant.REDIS_DATABASE, key = (RedisConstant.REDIS_KEY_PREFI
2021-10-11 09:49:09
376
原创 firewalld的一点点笔记
关闭service firewalld stop或者systemctl stop firewalld.service重载firewall-cmd --reload重启service firewalld restart或者systemctl restart firewalld.service开放端口firewall-cmd --zone=public --add-port=8888/tcp --permanent查看开放端口firewall-cmd --list-port
2021-09-23 15:48:37
65
原创 nginx重写rewrite -》http到https等
http强制转httpsNginx配置server配置体内set $flag 0; if ($server_port !~ 443){ set $flag "${flag}1"; } if ($request_method ~ ^(POST)$) { set $flag "${flag}2"; } if ($flag = "01"){ rewrite ^(/.*)$ https://$host$1 permanent; } if ($fla
2021-09-02 16:36:20
482
原创 golang AES128 ECB加密
AES128 ECBfunc EcbDecrypt(data, key []byte) []byte { block, _ := aes.NewCipher(key) decrypted := make([]byte, len(data)) size := block.BlockSize() for bs, be := 0, size; bs < len(data); bs, be = bs+size, be+size { block.Decrypt(decrypted[bs:be],
2021-07-07 13:35:14
3342
原创 反向代理OWA(Office Online Server/Office Web Apps Server)使用8080或其他除默认80以外端口的解决方法
场景:使用owa(Office Web Apps) 2013 或者OOS(Office Online Server) 2016/2017,因为某种原因需要代理到公网(不可使用80端口)。同样适用于转为https(非https部署方式的情况下)老版叫owa,新版叫oos前提条件:OWA正确安装且可以用,iis没有过多自定义规则或重写规则仅url重写。关于部署owa,例如单台服务器如server2012 可以部署owa2013和语言包及补丁等,设置-InternalURL且允许http访问-A
2021-06-24 16:19:27
1462
5
原创 升级openssl+py+openssh
安装更新openssl可用于CVE-2016-2183 修复升级安装依赖:sudo yum install zlib zlib-devel bzip2-devel openssl-devel ncurses-devel libuuid-devel sqlite-devel readline-devel tcl-devel tk-devel lzma gdbm-devel db4-devel libpcap-devel xz-devel libffi-developenssl下载地址:
2021-06-04 17:20:33
183
原创 Oracle增加触发器以加密数据
CREATE OR REPLACE TRIGGER "#触发器名#" BEFORE INSERT ON "#表#" REFERENCING OLD AS "OLD" NEW AS "NEW" FOR EACH ROW BEGINif :new.#字段1# is not null then :new.#字段1# := 加密函数...;end if;if :new.#字段2# is not null then :new.#字段2# := ....;end if;#.....END;...
2021-05-24 17:06:42
402
原创 ORA-00054问题解决
进入sysdba用户;执行select l.session_id,o.owner,o.object_name fromv$locked_object l,dba_objects o where l.object_id=o.object_id;找到sessionidSELECT sid, serial#, username, oSUSEr,terminal,program ,action, prev_exec_startFROM v$session where sid = 找到的session
2021-05-24 17:02:42
146
原创 sql查询重复数据
select*from表where字段in(select 字段 from 表 group by 字段 having count (字段) > 1)
2021-05-08 09:14:22
262
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人