上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 59 下一页
摘要: 同一台服务器上装了开发、测试环境。如果放在不同的目录下,文件名相同,在使用Java Sprintboot jar 项目启动、停止脚本 脚本时,会对启动、停止操作有影响 默认为:${artifactId}-${version} pom.xml <!--与build标签同级别,放在project标签中- 阅读全文
posted @ 2024-11-29 22:09 VipSoft 阅读(92) 评论(0) 推荐(0)
摘要: 将文件大小(字节),达到KB的转成KB,达到M的转成M /** * 方法一 * @param size * @return */ public static String toSize(long size) { if (size <= 0) { return "0"; } final String[ 阅读全文
posted @ 2024-11-26 14:25 VipSoft 阅读(64) 评论(0) 推荐(0)
摘要: Newtonsoft.Json Null 值默认转为 空 using Newtonsoft.Json; using Newtonsoft.Json.Serialization; using System; using System.Collections.Generic; using System. 阅读全文
posted @ 2024-11-22 16:07 VipSoft 阅读(81) 评论(0) 推荐(0)
摘要: 不要点系统自动升级,落后太多升不上去了,要去网页上下载dmg文件,逐个版本升 升级系统 https://support.apple.com/zh-cn/mac https://support.apple.com/zh-cn/102662 阅读全文
posted @ 2024-11-21 19:54 VipSoft 阅读(33) 评论(0) 推荐(0)
摘要: 目录Fastjson2 序列化Redis.configRedisUtil.javafastjson和fastjson2的区别 Spring Data Redis 为我们提供了下面的Serializer:GenericToStringSerializer、Jackson2JsonRedisSerial 阅读全文
posted @ 2024-11-20 11:02 VipSoft 阅读(1533) 评论(0) 推荐(0)
摘要: 目录MinIO Linux 安装单节点部署启动后台启动服务启动创建 systemd 系统启动服务文件创建环境变量文件启动MinIO服务连接到MinIO服务SpringBoot项目整合MinIO配置项工具类测试链接永不过期数据备份&迁移 MinIO 是一个基于Apache License v2.0开源 阅读全文
posted @ 2024-11-19 10:07 VipSoft 阅读(1632) 评论(0) 推荐(1)
摘要: SpringBoot 2.7.18 集成 Mybatis Plus + Druid 在数据库表定义json字段; 在实体类加上@TableName(autoResultMap = true) 在JSON字段映射的属性加上@TableField(typeHandler = JacksonTypeHan 阅读全文
posted @ 2024-11-05 23:45 VipSoft 阅读(102) 评论(0) 推荐(0)
摘要: 目录创建表插入插入数据查询CAST()将字符串转成jsonJSON类型的解析JSON_EXTRACT()解析json-> 箭头函数解析jsonJSON_QUOTE()引用与JSON_UNQUOTE()取消引用->>箭头解析jsonJSON类型的查询JSON_CONTAINS()判断是否包含JSON_ 阅读全文
posted @ 2024-11-04 16:35 VipSoft 阅读(335) 评论(0) 推荐(0)
摘要: Mybatis plus 数据库时间对的,取出来后,时间少了8小时,数据连接的时区也是对的 数据库是对的 代码取出来是对的 接口返回的JSON不对 SpringBoot 返回默认采用 jackson ,出现这种情况在 @JsonFormat 加上时区 /** * 创建时间 */ @Schema(de 阅读全文
posted @ 2024-10-31 09:17 VipSoft 阅读(460) 评论(0) 推荐(0)
摘要: 根据字符串,获取实体属性上的annotation,如:createTime” 找到对应实体属性中的 TableField(value = "create_time", fill = FieldFill.INSERT) Field[] fields = clazz.getFields(); //仅能获 阅读全文
posted @ 2024-10-30 17:18 VipSoft 阅读(86) 评论(0) 推荐(0)
摘要: org.junit.jupiter.api.extension.ParameterResolutionException: No ParameterResolver registered for parameter [java.lang.String code] in method [void co 阅读全文
posted @ 2024-10-28 23:03 VipSoft 阅读(80) 评论(0) 推荐(0)
摘要: Mybatis plus 默认值 @TableField(fill = FieldFill.INSERT_UPDATE) @TableField(fill = FieldFill.INSERT_UPDATE)是什么 @TableField(fill = FieldFill.INSERT)、@Tabl 阅读全文
posted @ 2024-10-28 17:16 VipSoft 阅读(2643) 评论(0) 推荐(0)
摘要: 解决方法: 将 SSH 客户端更新为支持 sha2-256 和 sha2-512 算法的版本。 阅读全文
posted @ 2024-10-28 13:13 VipSoft 阅读(1059) 评论(0) 推荐(0)
摘要: Error:Kotlin: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.9.0, expected version is 1.1.13. 阅读全文
posted @ 2024-10-27 08:58 VipSoft 阅读(118) 评论(0) 推荐(0)
摘要: 目录POMyml配置自定义的 OpenAPI 规范拦截器去除 swagger 的接口验证模型Controller 配置常用注解 注意:Swagger支持SpringBoot2.0但不支持SpringBoot3.0 OpenApi OpenApi是一个用于描述、定义和共享 RESTful API 文档 阅读全文
posted @ 2024-10-22 11:21 VipSoft 阅读(800) 评论(0) 推荐(1)
摘要: SpringBoot 2.3 升级到 SpringBoot 2.7 爬坑-- SpringDoc & Swagger When allowCredentials is true, allowedOrigins cannot contain the special value "*" since th 阅读全文
posted @ 2024-10-21 14:53 VipSoft 阅读(341) 评论(0) 推荐(0)
摘要: 目录Pom 依赖yml 配置Config 配置Mapper扫描EntityMapper.xmlMapper - SysMenuMapperServiceController条件构造器 打印 SQL 日志 logbak.xml <?xml version="1.0" encoding="UTF-8"? 阅读全文
posted @ 2024-10-21 14:04 VipSoft 阅读(1422) 评论(1) 推荐(2)
摘要: SpringBoot 2.3 升级到 SpringBoot 2.7 爬坑-- Swagger 报错 需要升级 到 3 详细见:https://www.cnblogs.com/vipsoft/p/18489922 SpringBoot 2.7 爬坑-- SpringDoc & Swagger (支持 阅读全文
posted @ 2024-10-19 21:37 VipSoft 阅读(432) 评论(0) 推荐(0)
摘要: 确保 SpringBoot、SpringCloud 版本要配对 https://spring.io/projects/spring-cloud <java.version>1.8</java.version> <spring-boot.version>2.3.0.RELEASE</spring-bo 阅读全文
posted @ 2024-10-18 16:56 VipSoft 阅读(227) 评论(0) 推荐(0)
摘要: SpringBoot 2.3 升级到 SpringBoot 3.3 爬坑 SpringBoot 2.3.0 -> spring-webmvc-5.2.6 SpringBoot 3.3.4 -> spring-webmvc-6.1.13 java: 程序包javax.servlet.http不存在 i 阅读全文
posted @ 2024-10-18 16:29 VipSoft 阅读(594) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 59 下一页