上一页 1 2 3 4 5 6 ··· 8 下一页
摘要: Querydsl 简化使用 1、在使用Querydsl时,需要定义EntityManager EntityManagerFactory 会存在许多重复性的代码,下面将使用进行归口,减少重复的引入操作 import com.blazebit.persistence.Criteria; import c 阅读全文
posted @ 2023-11-21 16:32 代码红了一大片 阅读(447) 评论(0) 推荐(0)
摘要: 记录一些常用,容易混乱的小知识 1、 Json (JsonNode) 判断对应的JsonNode中的数据 阅读全文
posted @ 2023-11-21 15:47 代码红了一大片 阅读(9) 评论(0) 推荐(0)
摘要: builder.and(Expressions.booleanTemplate("FUNCTION('jsonb_contains', {0}, {1})", dashboardReportsEntity.prepareReportViewMembers, Expressions.template( 阅读全文
posted @ 2023-10-12 16:11 代码红了一大片 阅读(114) 评论(0) 推荐(0)
摘要: 1、安装IDEA插件 Run Configuration for Typescript 2、全局安装ts-node npm install -g ts-node 3、安装ts依赖包(可以用于打印console) npm install -D tslib @types/node 4、如果是成熟的项目, 阅读全文
posted @ 2023-10-11 15:23 代码红了一大片 阅读(1580) 评论(0) 推荐(0)
摘要: ### 一、PGsql 数据库递归查询 ```sql with recursive ag_tree as (select id, title, type, parent_id from agreements where type = 'test' union all select a.id, a.t 阅读全文
posted @ 2023-07-21 15:03 代码红了一大片 阅读(1014) 评论(0) 推荐(0)
摘要: ### 一、可连接,有执行权限的数据库连接后 ```sql -- 备份 select pg_terminate_backend(pg_stat_activity.pid) from pg_stat_activity where datname = 'your_table'; drop databas 阅读全文
posted @ 2023-07-21 14:53 代码红了一大片 阅读(60) 评论(0) 推荐(0)
摘要: 建议跳转地址:https://juejin.cn/post/7108728363472617486 以下内容为本人体验记载 1、安装pgsql sudo yum install -y postgresql12 2、初始化数据库 sudo /usr/pgsql-14/bin/postgresql-14 阅读全文
posted @ 2023-07-04 23:36 代码红了一大片 阅读(389) 评论(0) 推荐(0)
摘要: ```java import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.j 阅读全文
posted @ 2023-06-14 10:47 代码红了一大片 阅读(89) 评论(0) 推荐(0)
摘要: 1、问题描述 有一个接收类,出于某种原因(调用第三方接口)会使用首字母大写的情况 @Data public class HelloModel{ private Strig ATest; private Strig BTest; } 当我使用这个类接收一个JSON 格式的数据,转换为对应的这个 Hel 阅读全文
posted @ 2023-05-15 22:46 代码红了一大片 阅读(570) 评论(0) 推荐(0)
摘要: 初始化方法 @PostConstruct InitializingBean CommandLineRunner ApplicationRunner 先后顺序 @PostConstruct > InitializingBean > CommandLineRunner、ApplicationRunner 阅读全文
posted @ 2023-05-05 18:46 代码红了一大片 阅读(91) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 ··· 8 下一页