- 博客(185)
- 资源 (16)
- 收藏
- 关注
原创 spring boot 2.7 + seata +微服务 降级失败问题修复
【代码】spring boot 2.7 + seata +微服务 降级失败问题修复。
2025-02-27 20:04:21
397
原创 display flex 的div 被子元素撑开不显示滚动条的一个解决demo
display flex 的div 被子元素撑开,不显示y轴滚动条的 一个解决demo。注: 不一定适用所有人的的相同问题。
2024-09-01 18:51:08
584
1
原创 为什么spring-boot-maven-plugin配置executable=true生成的jar可以通过 sh xxx.jar 运行
为什么spring-boot-maven-plugin配置executable=true生成的jar可以通过 sh xxx.jar 运行
2024-06-14 20:11:55
501
原创 基于Vue3实现的 宫格 图片摆放
本来要参考微信群头像的规则实现,网上找到一大堆类似的需求,奈何XXX折磨人,九宫格已经不能满足ta了。当前代码实现了…好多东西(可以多宫格).具体的看效果图。
2024-04-27 11:25:01
1451
1
原创 解决 mac提示 项目后台已添加
开启 XXX proxy 软件后,mac 总是会提示 项目后台已添加,贼烦人,参考https://gitee.com/TonyLiu2ca/mac-scripts/ 修改配置文件。https://download.youkuaiyun.com/download/qq_33547169/88492858 仅在通知中心通知。https://gitee.com/TonyLiu2ca/mac-scripts/ 采用的是横幅通知 以及通知中心通知。修改后的 仅在 通知中心通知。
2023-11-01 19:53:12
743
原创 Centos7 下 部署开源tesseract-ocr完整教程
http://www.nanstar.top/p/wiki_1649411481701https://segmentfault.com/a/1190000041832780yum install -y automake ca-certificates g++ git libtool make libjpeg-devel libpng-devel centos-release-scl devtoolset-8-gcc*scl enable devtoolset-8 bashmv /usr/bin/gc
2023-08-04 20:07:49
1395
原创 spring boot合并 http请求(前后端实现)
页面加载时要初始化很多资源信息,会发送好多http请求,根据http的通信握手特点,多个http请求比较浪费资源。进而如果能将多个http请求合并为一个发送给服务器,由服务器获取对应的资源返回给客户端。
2023-08-01 16:39:38
855
原创 Idea 2023.2 maven 打包时提示 waring 问题解决
MAC 进入到 /Applications/IntelliJ IDEA.app/Contents/plugins/maven/lib 这个目录。修改 maven3 为 maven3.9.2。然后将 Maven 3.8.8 解压到这个lib 下,重命名为 maven3.idea 2023.2 内置的 Maven 版本为 3.9.2,这个警告好像是Maven 4不支持的的 Plugin的警告。windows 应该也是在 安装目录的 /plugins/maven/lib目录下吧,可以试试如上方式修改。
2023-07-28 19:45:14
4689
1
原创 idea maven pom 配置profile activation 失效解决
问题:idea 2023.1 ,Maven 窗口多出一个profile 折叠选项,取消选择导致activation 配置失效。3:在点击一次(半选中状态,不知道这是个啥意思。idea profile activation 失效视频。2:点击profile配置的id对应的选择框,选中。
2023-03-30 20:05:17
1147
原创 idea创建的empty project 突然显示问题解决
升级完idea到最新的版本后,打开项目后发现项目列表展示emptyproject。该项目的根目录原是一个emptyproject,在emptyproject里面创建的各个module,这样项目只显示module,不显示emptyproject。
2022-07-28 11:32:51
914
原创 java8将List<TbUser>进行两层分组
用户democlass TbUser{ private int age; private int sex;}1.返回值方式一Map<Integer,<Integer,List<TbUser>>> result = users.stream().collect(Collectors.groupingBy(TbUser::getAge, Collectors.groupingBy(TbUser::getSex)));2.返回值方式二Map<Inte
2022-04-08 11:22:36
1736
原创 spring boot2.6.3整合 swagger导致项目启动失败
异常信息Failed to start bean 'documentationPluginsBootstrapper' ........尝试使用 spring.mvc.pathmatch.matching-strategy: ant_path_matcher,未生效。这是网上大多数的解决办法解决在github 查找到issues https://github.com/springfox/springfox/issues/3462,找到解决办法,整理如下首先需要添加配置(必须)sp
2022-02-09 15:21:40
4079
3
原创 Authorization Server oauth2-server 学习笔记 001
oauth2-client 学习笔记 002 参考博客以及文章和代码 SpringSecurity+JWT项目实战之Java权限管理Spring新的授权服务器Spring Authorization Server入门https://gitee.com/felord/security-learning/tree/spring-authorization-server/Getting Started with Spring Authorization Serverspring-authorizati
2021-12-07 20:46:24
11822
11
原创 spring boot security 自定义登录成功后处理
spring boot security 自定义登录成功后处理登录后跳转到来源地址, 参考源码 SavedRequestAwareAuthenticationSuccessHandler// 自定义 登录成功后的 handle 【AuthenticationSuccessHandler】public class ProjectSecurityHandler implements AuthenticationSuccessHandler{ private final RequestCach.
2021-12-02 18:13:01
475
原创 spring boot 整合 quartz 实现 动态定时任务
目标spring boot 整合 quartz使用自定义线程池使用自定义数据源动态添加 删除 暂停 恢复 定时任务的执行项目重启后历史任务自动执行上代码versionspring boot 2.5.6quartzpom 依赖(spring boot 相关依赖就不放了)<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring
2021-11-25 17:42:54
855
原创 ElasticSearch 常用功能整理 sql语句对应es dsl的转换
原文地址:吐血整理:一文看懂ES的R,查询与聚合: https://www.cnblogs.com/liusy01/p/13726780.html对es查询的索引的company,其有如下字段,下面是一个示例数据"id": "1", //id"name": "张三",//姓名"sex": "男",//性别"age": 49,//年龄"birthday": "1970-01-01",//生日"position": "董事长",//职位"joinTime": "1990-01-01",//入职时
2021-11-19 18:02:04
3428
原创 模仿 spring-integration-redis 实现 Redis 分布式锁
就是抄袭的,哈哈哈为什么要模仿一下喃<!-- 项目引入了这两个依赖,使用integration写好的redis锁,注意版本号,有一个依赖叫做spring-integration-core,引入的明明是5.5.5版本,可是打包出来的依赖版本成了5.4.7,找了两天也没找到为啥,心酸so:: 自己不用这个锁了,我要自己实现个,人家写的好,所以就模仿了(chaode,哈哈) --><dependency> <groupId>org.springframew
2021-11-18 15:33:55
932
原创 分布式事物 SeaTa 学习笔记《spring boot 整合 seata》
实现 seata 部署。完成spring boot整合seata自定义数据源场景下,完成事物的回滚(就是不适用spring boot的 数据源配置,自己new的数据源,完成事物回滚)无注册中心,无配置中心seata 部署数据序列化到数据库下载安装部署,参考官方文档就行了http://seata.io/zh-cn/docs/ops/deploy-guide-beginner.html配置修改修改file.conf 如下,修改的地方标注为①## transaction log sto.
2021-11-10 15:32:04
1389
原创 Vue引入tinymce 错误提示 This domain is not registered with Tiny Cloud. Please review
解决:删除 tinymce.min.js 里面的一行配置"service_message":"This domain is not registered with Tiny Cloud. Please review \u003ca target=\"_blank\" href=\"https://www.tiny.cloud/my-account\"\u003eyour approved domains\u003c/a\u003e."找到 删除 将就用。...
2021-09-28 12:22:52
6262
6
原创 阿里巴巴讲DDD文章收集
阿里技术专家详解 DDD 系列- Domain Primitive阿里技术专家详解DDD系列 第二弹 - 应用架构阿里技术专家详解DDD系列 第三讲 - Repository模式DDD系列第四讲:领域层设计规范DDD系列第五讲:聊聊如何避免写流水账代码...
2021-08-11 10:21:09
562
原创 spring boot cahe redis 设置有效时间以及自动刷新
versionspring boot 2.4.7参考文章https://blog.youkuaiyun.com/shuxing520/article/details/78787545整理结果 code缓存配置 ProjectCacheProperties@Data@Component@ConfigurationProperties(prefix = "project.cache")public class ProjectCacheProperties { /** .
2021-07-30 19:55:18
1456
原创 elementUI el-upload上传图片 并使用el-image预览
<template> <div> <el-upload action="#" list-type="picture-card" :auto-upload="false"> <i slot="default" class="el-icon-plus"></i> <div slot="file" slot-scope="{file}"> <el-image id="122" ref=
2021-06-29 15:07:41
4623
8
原创 spring boot 2.4.3 feign 调用时 No thread-bound request found 解决方案
环境spring boot 2.4.3spring cloud dependencies 2020.0.1spring-cloud-circuitbreaker-resilience4j 2.0.0feign 调用时异常信息cn.****.util.base.exception.GlobalSystemException: No thread-bound request found: Are you referring to request attributes outside of an ac
2021-06-23 15:15:37
3020
原创 子组件修改父组件的值
方式一父组件<div> <!-- 子组件 --> <childDiv v-model='userName'></childDiv><div>...<script>import childDiv from 'xxxx'export default { components: {childDiv}, data(){ return { userName:'张三' } }}</script
2021-04-25 17:30:42
2797
1
原创 使用 Vue3 开发项目[不用Node,实现浏览器访问]
使用 vue3 vue3-sfc-loader 实现《不适用 node 完成 vue 项目开发 浏览器 访问》vue3-sfc-loadergithub 地址资源vue3-sfc-loader https://cdn.jsdelivr.net/npm/vue3-sfc-loader/dist/vue3-sfc-loader.jsvue3 https://unpkg.com/vue@nextvue-router https://unpkg.com/vue-router/dist/vue-.
2021-04-12 16:28:03
4394
16
原创 java8将List<T>分组求和并返回 List<T>
将List 分组求和 并返回 List如下示例 :计算 同组用户的年龄和List<User> users = new ArrayList<>();// ... add user to usersMap<String, User> groupByModelId = users.stream() .collect(Collectors.toMap(User::getGroupId, Function.identity(), (m1, m2) -
2021-04-08 16:32:18
3649
原创 JAVA8 lambda将集合均等分成N份
利用流将集合均等分配成N 份参考 https://www.it610.com/article/1305408041658650624.htmList<String> names = ....;long pageNum = 20;long limit = (names.size() + pageNum - 1) / pageNum;List<List<String>> groupNames = Stream.iterate(0, n -> n + 1)
2021-03-26 13:44:31
2051
原创 Java 多线程 高并发 学习笔记
多线程常用方法 静态方法 Thread.sleep(); 当前线程等待一段时间,让别的线程执行 Thread.yield(); 我(当前线程)让一下,你和我在一起抢CPU,谁抢到了谁执行. 暂时停止执行,让出一下CPU,重新进入等待队里. 下一个进入CPU执行的线程还是有可能是当前的线程. Thread.sleep(); 线程睡眠等待
2021-03-25 10:56:30
151
2
一个简单的api测试管理工具
2025-02-08
Background project added notification.mobileconfig
2023-11-01
开源OCR tesseract5 在Centos7 下的安装包和相关依赖包
2023-08-04
element2.14.1.zip
2020-11-18
eureka-tomcat.zip
2020-09-21
lombok-plugin-0.30-2020.2.jar
2020-08-18
DNS Flusher for Chrome
2017-10-12
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人