-
Spring Boot ClickHouse JDBC 报 LZ4 is not supported
错误详情 LZ4 is not supported. Please disable compression(compress=0), modify the algorithm(e.g. compr
2026-01-15, Views: 121 , Topics: Spring Boot ClickHouse JDBC
-
Spring Data JDBC 查询指定字段
需求 Repository默认会查询实体类中的所有字段,但这不是最佳实践。 需求:只查询部分需要的字段。 Projection 官方文档将此定义为Projection映射。 public inter
2024-04-16, Views: 1767 , Topics: Spring Boot JDBC
-
Spring Data JDBC 报错 After saving the identifier must not be null
错误信息 java.lang.IllegalArgumentException: After saving the identifier must not be null at org.sp
2024-04-15, Views: 2706 , Topics: Spring Boot JDBC
-
Java JDBC 开启事务
代码 connection.setAutoCommit(false);:开启事务。 connection.commit();:提交事务。 connection.rollback();:回滚事务。 b
-
Java JDBC 获取数据库链接
方法一 Class<?> clazz = Class.forName("com.mysql.jdbc.Driver"); // Driver driver = (Driver) clazz.newI