会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
猴子也疯狂
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
20
21
22
23
24
25
26
27
28
29
下一页
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
阅读(259)
评论(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
阅读(151)
评论(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
阅读(486)
评论(0)
推荐(0)
2022年9月13日
oss 视频截图 阿里云
摘要: **在oss视频地址后加上 ?x-oss-process=video/snapshot,t_1,f_jpg,w_1280,h_720,m_fast,ar_auto ** t_1表示截取的视频时间,截取1豪秒的画面, 单位为毫秒, w_1280表示宽为1280, h_720表示宽为720 m 截图模式
阅读全文
posted @ 2022-09-13 10:45 Lafite-1820
阅读(163)
评论(0)
推荐(0)
2022年9月7日
JAVA 几种常见的 ENUM
摘要: 方法一:常量 在JDK1.5 之前,我们定义常量都是: public static fianl.... 。现在好了,有了枚举,可以把相关的常量分组到一个枚举类型里,而且枚举提供了比常量更多的方法 public enum Color { RED, GREEN, BLANK, YELLOW } 用法二:
阅读全文
posted @ 2022-09-07 14:23 Lafite-1820
阅读(139)
评论(0)
推荐(0)
@Valid注解
摘要: | 分类 | 限制 | 说明 | | | | | | 空和非空检查 | @Null | 限制只能为null | | | @NotNull | 限制必须不为null | | | @NotEmpty | 验证注解的元素值不为null且不为空(字符串长度不为0、集合大小不为0) | | | @NotBla
阅读全文
posted @ 2022-09-07 11:55 Lafite-1820
阅读(75)
评论(0)
推荐(0)
2022年9月5日
BigDecimal如何相除并保留小数后两位
摘要: public static void main(String[] args) { long aa = System.currentTimeMillis(); // System.out.println(aa); BigDecimal a = new BigDecimal(115); BigDecim
阅读全文
posted @ 2022-09-05 15:22 Lafite-1820
阅读(154)
评论(0)
推荐(0)
2022年9月2日
java 上传读取 excel
摘要: implementation group: 'org.apache.poi', name: 'poi', version: '5.2.2' implementation group: 'org.apache.poi', name: 'poi-ooxml', version: '5.2.2' // e
阅读全文
posted @ 2022-09-02 15:25 Lafite-1820
阅读(344)
评论(0)
推荐(0)
2022年9月1日
jpa使用
摘要: 1、findBy findAllBy的区别 它们之间没有区别,它们将执行完全相同的查询,当从方法名称派生查询时,Spring Data会忽略All部分。 唯一需要强调重要的一点是By关键字,其后面的任何内容都被视为字段名称,如 findXXXXXXXXXXXXXByName 实际上==》 findB
阅读全文
posted @ 2022-09-01 11:18 Lafite-1820
阅读(53)
评论(0)
推荐(0)
2022年8月26日
http git 每次输入密码解决方案
摘要: 进入命令行 git config --global credential.helper store 使用git pull 然后输入账号,密码,之后就能记住密码了 修改远程地址 git remote set-url origin http://192.168.199.254/dspx/dspx-web
阅读全文
posted @ 2022-08-26 16:59 Lafite-1820
阅读(51)
评论(0)
推荐(0)
上一页
1
···
20
21
22
23
24
25
26
27
28
29
下一页
公告