随笔分类 -  java

摘要:1.需要将body复制到exchange,便于之后使用 import io.netty.buffer.UnpooledByteBufAllocator; import lombok.extern.slf4j.Slf4j; import org.springframework.cloud.gatewa 阅读全文
posted @ 2021-06-24 18:22 staystand 阅读(580) 评论(0) 推荐(0)
摘要:很好的文章参考:https://www.cnblogs.com/abiu/p/14771729.html 用oauth2实现sso单点登录:https://www.cnblogs.com/cjsblog/p/10548022.html 阅读全文
posted @ 2021-06-21 11:44 staystand 阅读(173) 评论(0) 推荐(0)
摘要:参考文章 https://jiming.blog.csdn.net/article/details/103185972 其他文章 https://blog.csdn.net/weixin_44259720/article/details/95996829 https://blog.csdn.net/ 阅读全文
posted @ 2021-06-17 19:04 staystand 阅读(1160) 评论(0) 推荐(0)
摘要:官方文档:https://mp.baomidou.com/guide/ 1.maven 包 <dependency> <groupId>com.baomidou</groupId> <artifactId>mybatis-plus-generator</artifactId> <version>3. 阅读全文
posted @ 2021-06-10 12:45 staystand 阅读(89) 评论(0) 推荐(0)
摘要:1.下载IDE Eval Reset https://gitee.com/pengzhile/ide-eval-resetter/#https://plugins.zhile.io/files/ide-eval-resetter-2.1.14-d2fedb86.zip 2.拖入idea 完成安装 3 阅读全文
posted @ 2021-05-31 10:21 staystand 阅读(248) 评论(0) 推荐(0)
摘要:问题@RestController注解,对于返回值是集合类的API接口,其数据还是会被系列化成XML格式 排查原因 经过排查发现是spring-cloud-starter-netflix-eureka-client的Maven依赖间接引入了jackson-dataformat-xml包,而如果Spr 阅读全文
posted @ 2021-05-20 17:48 staystand 阅读(234) 评论(0) 推荐(0)
摘要:1.CachePostBodyFilter将request body 取出来重存 import io.netty.buffer.UnpooledByteBufAllocator; import org.springframework.cloud.gateway.filter.GatewayFilte 阅读全文
posted @ 2021-05-20 10:38 staystand 阅读(1547) 评论(0) 推荐(0)
摘要:public static void main(String[] args){ String strArr = "[{\"0\":\"zhangsan\",\"1\":\"lisi\",\"2\":\"wangwu\",\"3\":\"maliu\"}," + "{\"00\":\"zhangsan 阅读全文
posted @ 2021-04-30 09:26 staystand 阅读(915) 评论(0) 推荐(0)
摘要:1.文件/文件夹是否存在 文件/文件夹是否存在,不存在就创建 File file = new File(filePath); if(!file.exsists){ file.mkdir(); } 2.文件夹是否存在 File file =new File(filePath); if(!file.is 阅读全文
posted @ 2021-03-08 10:17 staystand 阅读(583) 评论(0) 推荐(0)
摘要:1.下载链接 链接: https://pan.baidu.com/s/1YnijlGiMilBWyXEAg0M1QQ 提取码: d4s2 2.常用操作 参考:https://www.cnblogs.com/biehongli/p/6025954.html 阅读全文
posted @ 2021-01-20 16:15 staystand 阅读(74) 评论(0) 推荐(0)
摘要:###1.gitlab 访问报500 查看 gitlab服务都是正常的 [root@localhost docker]# gitlab-ctl status run: alertmanager: (pid 98811) 665247s; run: log: (pid 151592) 750551s 阅读全文
posted @ 2020-12-30 10:51 staystand 阅读(414) 评论(0) 推荐(0)
摘要:、新建代码库 在当前目录新建一个Git代码库 $ git init 新建一个目录,将其初始化为Git代码库 $ git init [project-name] 下载一个项目和它的整个代码历史 $ git clone [url] 二、配置 Git的设置文件为.gitconfig,它可以在用户主目录下( 阅读全文
posted @ 2020-12-29 15:34 staystand 阅读(67) 评论(0) 推荐(0)
摘要:1. 参考经验: https://blog.csdn.net/loongshawn/article/details/50569603 2. 遇到问题 Deployment Assembly 点击 Java Build Path Entries 时没有对应的包。 3. 解决问题 更改 maven se 阅读全文
posted @ 2020-08-25 17:31 staystand 阅读(141) 评论(0) 推荐(0)
摘要:1.微信支付文档 https://pay.weixin.qq.com/wiki/doc/api/index.html 2.唤起微信支付的几种方式 3.支付的几种形式 4.遇到的一些坑 总结 阅读全文
posted @ 2020-03-04 14:35 staystand 阅读(1986) 评论(0) 推荐(0)
摘要:1.查询java程序的pid 2.使用jstat查看gc情况 jstat gc pid 1000[间隔时间] 得到如下 3.分析各个属性 阅读全文
posted @ 2019-12-25 21:07 staystand 阅读(408) 评论(0) 推荐(0)
摘要:JSON分类 1.JSON对象 2.JSON对象数组 3.JSON字符串 fastjson fastjson是阿里巴巴开发的一款用于java的jar包 下载地址:https://github.com/alibaba/fastjson 参考官方文档 https://github.com/alibaba 阅读全文
posted @ 2019-12-16 12:01 staystand 阅读(135) 评论(0) 推荐(0)
摘要:```import java.io.IOException;import java.net.URI;import java.nio.charset.Charset;import java.util.ArrayList;import java.util.HashMap;import java.util.List;import java.util.Map;import java.util.UUID;i... 阅读全文
posted @ 2019-12-11 19:33 staystand 阅读(523) 评论(0) 推荐(0)
摘要:问题 原因 解决方法 1.修改 mysql 建立链接配置 2.修改数据库配置 拓展 mysql url 常用属性 |属性名|描述|默认值| |: |: |: | |user|用户名|无| |password|密码|无| |userUnicode|是否使用Unicode字符集|false| |char 阅读全文
posted @ 2019-12-03 17:30 staystand 阅读(260) 评论(0) 推荐(0)
摘要:问题 使用外部tomcat启动springboot项目失败,报错: ` 原因 springboot本身提供了内置tomcat,如果引入外部tomcat的话lib文件夹下的jar包会冲突。需要解决冲突。 方法 方法1.移除内置的tomcat 方法2. 将scop置为provided springboo 阅读全文
posted @ 2019-11-28 17:48 staystand 阅读(3097) 评论(0) 推荐(0)
摘要:递归 To Iterate is Human, to Recurse, Divine 递归的定义 递归的三三要素 递归思想的精髓 递归的经典例子 1.阶乘 2.斐波那契数列 3.杨辉三角 4.汉诺塔问题 5.二叉树深度 递归的优化算法 阅读全文
posted @ 2019-11-27 15:10 staystand 阅读(223) 评论(0) 推荐(0)