会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
猴子也疯狂
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
20
21
22
23
24
25
26
27
28
29
下一页
2022年11月10日
分别在mysql和postgreSQL中存储json对象
摘要: 1.添加maven依赖 <dependency> <groupId>com.vladmihalcea</groupId> <artifactId>hibernate-types-52</artifactId> <version>${hibernate-types.version}</version>
阅读全文
posted @ 2022-11-10 11:44 Lafite-1820
阅读(261)
评论(0)
推荐(0)
2022年11月9日
Java接收json参数
摘要: Java接收json参数 import java.util.List; import java.util.Map; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.b
阅读全文
posted @ 2022-11-09 17:51 Lafite-1820
阅读(436)
评论(0)
推荐(0)
使用OkHttp发送POST请求的快速入门指南
摘要: 英文原文:https://www.baeldung.com/okhttp-post 1介绍 本文将介绍 OkHttp 客户端的基本用法。 在本篇简短的技术文章中,我们将特别介绍 OkHttp 3.x 版本中发送Post请求的不同方式。 2 基本的 POST 请求d 我们可以使用 FormBody.B
阅读全文
posted @ 2022-11-09 11:45 Lafite-1820
阅读(1098)
评论(0)
推荐(0)
JPA操作PgSQL的JSON类型(org.postgresql.util.PSQLException: ERROR: column xxx is of type json问题)
摘要: 遇到org.postgresql.util.PSQLException: ERROR: column xxx is of type json问题 可以再jdbc连接后面增加stringtype=unspecified来把JSON类型当STRING类型存储 jdbc:postgresql://loca
阅读全文
posted @ 2022-11-09 11:32 Lafite-1820
阅读(411)
评论(1)
推荐(0)
jpa和postgres实现保存json格式数据
摘要: maven包 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-jpa</artifactId> </dependency> <dependency> <grou
阅读全文
posted @ 2022-11-09 11:29 Lafite-1820
阅读(1176)
评论(1)
推荐(0)
2022年11月3日
Java反射和new效率对比,差距有多大?
摘要: Java反射和new效率对比,差距有多大? 一. 基础概念 Java中,一般我们创建一个对象可能会选择new一下个实例。但是随着我们技术的不断提升,我们也学习到了,可以通过反射技术实现对象的创建。 可是,你有没有想一下,什么时候我们改用new创建对象,什么时候我们改用反射创建对象呢? 两者创建对象的
阅读全文
posted @ 2022-11-03 09:43 Lafite-1820
阅读(117)
评论(0)
推荐(0)
2022年10月13日
Mybatis-plus分页查询和条件查询通用写法- 动态接口参数
摘要: 一 查询条件VO /** * @className: TeacherQueryVo * @description: 讲师查询条件封装 * @date: 2020/11/18 * @author: cakin */ @ApiModel("Teacher查询对象") @Data public class
阅读全文
posted @ 2022-10-13 17:28 Lafite-1820
阅读(871)
评论(0)
推荐(0)
2022年10月11日
nginx 配置
摘要: 1, 一个域名多个项目 server { listen 80; listen [::]:80; server_name xxxxx.cn; proxy_intercept_errors on; index index.html index.htm; # root /raray/wwwroot; er
阅读全文
posted @ 2022-10-11 18:31 Lafite-1820
阅读(280)
评论(0)
推荐(0)
2022年9月28日
spring data jpa uuid转varcher
摘要: 在使用JPA利用原生SQL查询数据库时,报错:No Dialect mapping for JDBC type: 1111 解决办法: 由于联表查询时需要返回多个字段,所以JPA接收数据是自定义的一个POJO,而查询返回类型中有uuid类型字段,需要利用 cast方法将uuid字段转换为varcha
阅读全文
posted @ 2022-09-28 18:17 Lafite-1820
阅读(176)
评论(0)
推荐(0)
postgresql uuid模糊搜索 uuid string 类型转换 SQL Error [42883] explicit type casts
摘要: 问题描述 在 postgresql 的使用过程中,你可能有以下几种需求: 要对 uuid 类型的列进行过滤,但是需要手动输入整个uuid太麻烦容易出错,如果 uuid 列也能像字符串一样模糊匹配就好了 对 uuid 列直接进行模糊匹配,会报错 SQL Error [42883] 有没有什么办法可以对
阅读全文
posted @ 2022-09-28 14:47 Lafite-1820
阅读(588)
评论(0)
推荐(0)
上一页
1
···
20
21
22
23
24
25
26
27
28
29
下一页
公告