上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 63 下一页
摘要: 系统唯一ID是我们在设计一个系统的时候常常会遇见的问题,也常常为这个问题而纠结。生成ID的方法有很多,适应不同的场景、需求以及性能要求。所以有些比较复杂的系统会有多个ID生成的策略。下面就介绍一些常见的ID生成策略。 1. 数据库自增长序列或字段 最常见的方式。利用数据库,全数据库唯一。 优点: 1 阅读全文
posted @ 2023-05-05 23:07 哩个啷个波 阅读(110) 评论(0) 推荐(0)
摘要: 原因是导入了jdbc的依赖,使用@Configuration注解向spring注入了dataSource bean。 但是因为工程中没有关于dataSource相关的配置信息,当spring创建dataSource bean因缺少相关的信息就会报错。 有两个办法: 办法1: 去除spring-boo 阅读全文
posted @ 2023-05-05 22:27 哩个啷个波 阅读(1057) 评论(0) 推荐(1)
摘要: 1、问题 运行Spring Boot项目,发生java.lang.IllegalArgumentException异常,原因如下: ContextPath must start with '/' and not end with '/' 完整的Run输出如下: . ____ _ __ _ _ /\\ 阅读全文
posted @ 2023-04-25 14:05 哩个啷个波 阅读(688) 评论(0) 推荐(0)
摘要: 一、Spring boot自定义配置实现自动提示 @ConfigurationProperties 的作用: 让JavaBean中属性值要和配置文件进行映射 @Getter @Setter @ConfigurationProperties(prefix = "jwt") public class J 阅读全文
posted @ 2023-04-25 11:39 哩个啷个波 阅读(445) 评论(0) 推荐(0)
摘要: JSON在线生成JAVA实体类工具(ES JSON在线工具) http://www.esjson.com/jsontopojo.html 在线代码格式化 https://tool.oschina.net/codeformat/xml 程序员导航-CXY521 http://tooool.org/ X 阅读全文
posted @ 2023-04-19 11:21 哩个啷个波 阅读(24) 评论(0) 推荐(0)
摘要: 维护同事的代码发现他的 sql 查询记录条数都是 count(1),而我则习惯用 count(*),这有什么区别呢? 含义: 1、count() :统计所有的行数,包括为null的行(COUNT()不单会进行全表扫描,也会对表的每个字段进行扫描。而COUNT('x')或者COUNT(COLUMN)或 阅读全文
posted @ 2023-04-17 15:17 哩个啷个波 阅读(312) 评论(0) 推荐(1)
摘要: vn服务器地址改变时 svn的版本固然也要改变,首先要把目录中的.svn版本删除 然后选择文件位置右键空白处 选择SVN检出 ,svn会对比版本库 点击确定 就可以了 阅读全文
posted @ 2023-04-17 11:59 哩个啷个波 阅读(44) 评论(0) 推荐(0)
摘要: ![](https://img2023.cnblogs.com/blog/2446184/202304/2446184-20230412175159952-401283687.png) 阅读全文
posted @ 2023-04-12 17:52 哩个啷个波 阅读(20) 评论(0) 推荐(0)
摘要: 错误信息: com.xubo.rabbitmq.springbootrabbitmq.SpringbootRabbitmqApplication . ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | 阅读全文
posted @ 2023-04-06 22:29 哩个啷个波 阅读(1159) 评论(0) 推荐(0)
摘要: 报错: Failed to start bean ‘documentationPluginsBootstrapper’; nested exception is java.lang.NullPointerException错误 项目版本: springboot最新版本 <parent> <group 阅读全文
posted @ 2023-04-05 21:25 哩个啷个波 阅读(265) 评论(0) 推荐(0)
上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 63 下一页