摘要: > 话不多说 **1.三个注解区别** `@NotBlank` 只能作用在String上,不能为null,而且调用trim()后,长度必须大于0(不能为空格) `@NotNull` 不能为null,但可以为空字符串,校验Integer类型不能为空 `@NotEmpty` 不能为null,并且长度必须 阅读全文
posted @ 2023-07-03 13:56 freedomlog 阅读(96) 评论(0) 推荐(0) 编辑
摘要: >1. 编辑服务配置 ![](https://img2023.cnblogs.com/blog/3121974/202305/3121974-20230522205603192-1098017919.png) >2.copy原服务配置一份 ![](https://img2023.cnblogs.co 阅读全文
posted @ 2023-05-22 20:58 freedomlog 阅读(334) 评论(0) 推荐(1) 编辑
摘要: 先上错误问题 这个报错我在网上找了~~~ 每个人都在说五花八门的, 接近真相但却不是!!!!! 接下来 由我补充 nacos-server-2.2.1\nacos\bin\startup.cmd 文件 修改nacos模式 修改的好处在win下 你可以直接双击启动 不需要 .\startup.cmd 阅读全文
posted @ 2023-03-22 22:21 freedomlog 阅读(674) 评论(0) 推荐(0) 编辑
摘要: pom 文件提示失效 标签颜色都变了 xml文件变成灰色 问题 查看是否缺少 *.xml 这条规则 添加完再试一下, 我也是今天出现这个问题的 原文 : https://www.cnblogs.com/yangzaikongzhongfei/p/14137840.html 阅读全文
posted @ 2023-03-22 19:48 freedomlog 阅读(33) 评论(0) 推荐(0) 编辑
摘要: 导包go原生sdk的包还有 "github.com/go-sql-driver/mysql" import ( "database/sql" "fmt" _ "github.com/go-sql-driver/mysql" ) 构建常量 const ( dbhost = "xx.xx.xx.xx:3 阅读全文
posted @ 2023-03-17 23:28 freedomlog 阅读(148) 评论(0) 推荐(0) 编辑
摘要: XML格式化 https://c.runoob.com/front-end/710/ 文档翻译 https://translate.google.com/ 大小写转换等 https://www.iamwawa.cn/daxiaoxie.html 在线去重 https://tool.lanrentuk 阅读全文
posted @ 2023-03-15 17:37 freedomlog 阅读(26) 评论(0) 推荐(0) 编辑
摘要: 查看分区大小 df -h 端口情况 ss -tnl lsof -i:端口号 lsof -i:8080:查看8080端口占用 lsof abc.txt:显示开启文件abc.txt的进程 lsof -c abc:显示abc进程现在打开的文件 lsof -c -p 1234:列出进程号为1234的进程所打 阅读全文
posted @ 2023-03-15 17:27 freedomlog 阅读(39) 评论(0) 推荐(0) 编辑
摘要: 版本 Unirest目前版本类型 <dependency> <groupId>com.mashape.unirest</groupId> <artifactId>unirest-java</artifactId> <version>1.4.9</version> </dependency> <dep 阅读全文
posted @ 2023-03-03 00:31 freedomlog 阅读(611) 评论(0) 推荐(0) 编辑
摘要: 链路日志 在日常项目中我们大量使用日志来进行记录服务运行情况, 但是当数据量变大, 接口频次变高,就会出现线程号重复的情况,在排查问题是不能及时定位到相关点上。基于此场景下,MDC就应运而生了, 我也是最近才在项目中引入的;之前项目一直没有使用,引入后,查询日志什么的也都方便很多。 新项目使用 涉及 阅读全文
posted @ 2023-03-02 16:02 freedomlog 阅读(266) 评论(0) 推荐(0) 编辑