上一页 1 2 3 4 5 6 ··· 33 下一页
  2023年10月23日
摘要: ^((?!(\*|//)).)+[\u4e00-\u9fa5] 阅读全文
posted @ 2023-10-23 15:55 dreamstar 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 1.分页查询 pageNumber是从0开始, pageNumber=0,pageSize=3 就是获取前3条 参考创建分页Pageable变量 创建Pageable对象,再查询 import java.util.List; import org.springframework.beans.fact 阅读全文
posted @ 2023-10-23 15:43 dreamstar 阅读(102) 评论(0) 推荐(0) 编辑
摘要: 条件化查询 用查询条件创建Specification对象 参考Spring Data JPA Specification查询 使用Criteria查询 Criteria查询是面向对象查询, root就是一个对象,root.get("name")就是name属性。可以级联获取属性 每一个查询条件创建一 阅读全文
posted @ 2023-10-23 15:02 dreamstar 阅读(257) 评论(0) 推荐(0) 编辑
  2023年8月16日
摘要: 参考 将excel表格数据转换为sql语句,[转]Excel数据转化为sql脚本 1.在当前行的最后新增一列,假如是M 列,输入如下insert into tb_student (seq_id,student_id,name,class_no,age,sex) 2.再新增一列,输入如下=CONCAT 阅读全文
posted @ 2023-08-16 16:56 dreamstar 阅读(810) 评论(0) 推荐(0) 编辑
  2023年5月9日
摘要: ​Git 全局配置 查看全局配置 git config --global --list git config --global user.name 删除全局配置 git config --global --unset user.name 1.生成ssh public key and private 阅读全文
posted @ 2023-05-09 18:50 dreamstar 阅读(240) 评论(0) 推荐(0) 编辑
  2022年10月11日
摘要: 1.Spring Security 权限管理框架 2.Spring Security 配置 3.Spring Security 认证,登陆拦截体验 4.Spring Security 配置数据源 - 内存用户 5.Spring Security 配置数据源 - 数据库用户 6.Spring Secu 阅读全文
posted @ 2022-10-11 11:46 dreamstar 阅读(16) 评论(0) 推荐(0) 编辑
  2022年8月30日
摘要: Java获取当前服务器ip 参考 https://www.cnblogs.com/-llf/p/11769799.html import java.net.InetAddress; import java.net.UnknownHostException; public class ServerIp 阅读全文
posted @ 2022-08-30 16:56 dreamstar 阅读(756) 评论(0) 推荐(0) 编辑
摘要: 1.多个同名配置文件 application.properties 读取顺序 config/application.properties(项目根目录中config目录下) application.properties(项目根目录下) resources/config/application.prop 阅读全文
posted @ 2022-08-30 14:21 dreamstar 阅读(141) 评论(0) 推荐(0) 编辑
  2022年8月24日
摘要: 参考 http://t.zoukankan.com/lidabo-p-3024708.html 1、查找表people中字段(peopleId)重复的记录 select * from people where peopleId in (select peopleId from people grou 阅读全文
posted @ 2022-08-24 14:37 dreamstar 阅读(4) 评论(0) 推荐(0) 编辑
  2022年8月10日
摘要: 单元格格式 import java.awt.Color; import org.apache.poi.ss.usermodel.BorderStyle; import org.apache.poi.ss.usermodel.CellStyle; import org.apache.poi.ss.us 阅读全文
posted @ 2022-08-10 16:31 dreamstar 阅读(148) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 33 下一页