会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
冷风5997
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
下一页
2024年7月13日
排除swagger路径
摘要: // 2.3.排除swagger路径 registration.excludePathPatterns( "/**", "/v2/**", "/v3/**", "/swagger-resources/**", "/webjars/**", "/doc.html", "/lessons/**", "*
阅读全文
posted @ 2024-07-13 21:24 冷风5997
阅读(32)
评论(0)
推荐(0)
2024年7月11日
MP公共填充字段
摘要: 1.首先是在实体类中,使用@TableField注解指定自动生成的策略 java private Integer status; @TableField(fill = FieldFill.INSERT)//插入时,填充字段 private LocalDateTime createTime; @Tab
阅读全文
posted @ 2024-07-11 22:02 冷风5997
阅读(27)
评论(0)
推荐(0)
redis序列化问题springboot以及springboot的基本redis配置文件
摘要: 可以看到value显示为二进制,这是由于redisTemplate默认使用jdk序列化导致的,这种方式生成的数据较大,性能较低,且只有Java应用能够反序列化。本文将用fastjson2作为序列化方式。 fastjson2作为序列化方式pom文件中引入fastjson2: <dependency>
阅读全文
posted @ 2024-07-11 20:37 冷风5997
阅读(200)
评论(0)
推荐(0)
2024年7月9日
centos7网络设置NAT备份
摘要:
阅读全文
posted @ 2024-07-09 19:25 冷风5997
阅读(18)
评论(0)
推荐(0)
2024年7月6日
springboot整合ElasticSearch
摘要: RestClient依赖,此为java的客户端,从来交互elasticsearch <dependency> <groupId>org.elasticsearch.client</groupId> <artifactId>elasticsearch-rest-high-level-client</a
阅读全文
posted @ 2024-07-06 22:24 冷风5997
阅读(95)
评论(0)
推荐(0)
2024年7月2日
MP实现分页条件查询
摘要: >详情gitee笔记 这就是mp的分页插件: userMapper.selectPage(page, queryWrapper); public class DishController { @Autowired private DishService dishService; @GetMapp
阅读全文
posted @ 2024-07-02 20:54 冷风5997
阅读(128)
评论(0)
推荐(0)
2024年5月21日
docker oracle19c
摘要: --name "oracle19c" --指定了容器名称-p 1521:1521 --将容器内监听端口映射到宿主机的1521端口,如果本地已经安装过数据库1521被占用,需要修改前面的端口号,例如:-p 1522:1521-e ORACLE_PDB=orcl --指定数据库service name,
阅读全文
posted @ 2024-05-21 16:48 冷风5997
阅读(100)
评论(0)
推荐(0)
2024年5月10日
TestEngine with ID ‘junit-jupiter‘ failed to discover tests
摘要: pom.xml中不仅添加了spring-boot-starter-test依赖,还添加了spring-test依赖, 将spring-test注释掉之后项目启动成功。
阅读全文
posted @ 2024-05-10 11:41 冷风5997
阅读(98)
评论(0)
推荐(0)
2024年5月8日
关于IDEA中jdk版本问题
摘要: <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <java.version>11</java.version> <maven.compiler.source>11</maven.compi
阅读全文
posted @ 2024-05-08 15:58 冷风5997
阅读(11)
评论(0)
推荐(0)
2024年5月6日
Nginx启动不了原因
摘要: 1.端口被占用(如果默认,查看80端口是否被其他程序占用)2.路径中文(查看nginx外部文件夹是否含有中文)
阅读全文
posted @ 2024-05-06 09:29 冷风5997
阅读(32)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
下一页
公告