上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 58 下一页
摘要: SpringBoot 2.7.18 集成 Mybatis Plus + Druid 在数据库表定义json字段; 在实体类加上@TableName(autoResultMap = true) 在JSON字段映射的属性加上@TableField(typeHandler = JacksonTypeHan 阅读全文
posted @ 2024-11-05 23:45 VipSoft 阅读(95) 评论(0) 推荐(0)
摘要: 目录创建表插入插入数据查询CAST()将字符串转成jsonJSON类型的解析JSON_EXTRACT()解析json-> 箭头函数解析jsonJSON_QUOTE()引用与JSON_UNQUOTE()取消引用->>箭头解析jsonJSON类型的查询JSON_CONTAINS()判断是否包含JSON_ 阅读全文
posted @ 2024-11-04 16:35 VipSoft 阅读(312) 评论(0) 推荐(0)
摘要: Mybatis plus 数据库时间对的,取出来后,时间少了8小时,数据连接的时区也是对的 数据库是对的 代码取出来是对的 接口返回的JSON不对 SpringBoot 返回默认采用 jackson ,出现这种情况在 @JsonFormat 加上时区 /** * 创建时间 */ @Schema(de 阅读全文
posted @ 2024-10-31 09:17 VipSoft 阅读(436) 评论(0) 推荐(0)
摘要: 根据字符串,获取实体属性上的annotation,如:createTime” 找到对应实体属性中的 TableField(value = "create_time", fill = FieldFill.INSERT) Field[] fields = clazz.getFields(); //仅能获 阅读全文
posted @ 2024-10-30 17:18 VipSoft 阅读(82) 评论(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 阅读(66) 评论(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 阅读(2522) 评论(0) 推荐(0)
摘要: 解决方法: 将 SSH 客户端更新为支持 sha2-256 和 sha2-512 算法的版本。 阅读全文
posted @ 2024-10-28 13:13 VipSoft 阅读(990) 评论(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 阅读(103) 评论(0) 推荐(0)
摘要: 目录POMyml配置自定义的 OpenAPI 规范拦截器去除 swagger 的接口验证模型Controller 配置常用注解 注意:Swagger支持SpringBoot2.0但不支持SpringBoot3.0 OpenApi OpenApi是一个用于描述、定义和共享 RESTful API 文档 阅读全文
posted @ 2024-10-22 11:21 VipSoft 阅读(776) 评论(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 阅读(327) 评论(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 阅读(1337) 评论(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 阅读(418) 评论(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 阅读(219) 评论(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 阅读(552) 评论(0) 推荐(0)
摘要: StackExchange.Redis RedisHelper 工具类 Install-Package StackExchange.Redis using Microsoft.Extensions.Configuration; using StackExchange.Redis; using Sys 阅读全文
posted @ 2024-10-11 17:08 VipSoft 阅读(350) 评论(0) 推荐(0)
摘要: js 实现 string.format 功能 <script type="text/javascript"> var errorHtml = "<a title=\"{1}\" href=\"#\" onclick=\"\" class=\"ml-5\" style=\"text-decoratio 阅读全文
posted @ 2024-09-30 10:05 VipSoft 阅读(184) 评论(0) 推荐(0)
摘要: This configuration section cannot be used at this path. This happens when the section is locked at a parent level. Locking is either by default (overr 阅读全文
posted @ 2024-09-26 09:58 VipSoft 阅读(204) 评论(0) 推荐(0)
摘要: Java Sprintboot jar 项目启动、停止脚本 nohup java -jar ${APP_NAME} --spring.profiles.active=${active} > /dev/null 2>&1 & 后台运行不输出任何信息: nohup ./test > /dev/null 阅读全文
posted @ 2024-09-14 16:15 VipSoft 阅读(239) 评论(0) 推荐(0)
摘要: C# 调用 exe 输出日志 ProcessStartInfo using System; using System.Diagnostics; using NLog; class Program { static void Main() { ProcessStartInfo startInfo = 阅读全文
posted @ 2024-09-05 16:45 VipSoft 阅读(78) 评论(0) 推荐(0)
摘要: Typora 1.0.3 markdown 满屏显示,去除两边的留白 Typora Markdown 设定代码显示高度 Typora 显示数学公式 Markdown 数学公式 Html 表格 在线转 Markdown Markdown Emojio 表情图标 点击Typora的文件—>偏好设置–>外 阅读全文
posted @ 2024-09-02 14:45 VipSoft 阅读(110) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 58 下一页