随笔分类 -  springboot

mybatis时间字段存入mysql数据库时间差一秒的问题
摘要:环境: - springboot mybatisplus - entry ``` import java.util.Date; /** * 促销开始时间 */ @JsonFormat( pattern = "yyyy-MM-dd HH:mm:ss" ) @ApiModelProperty(value 阅读全文

posted @ 2023-08-29 17:29 何苦-> 阅读(335) 评论(0) 推荐(0) 编辑

maven 包丢失,方法(接口)调用失败
摘要:报错信息 org.springframework.web.util.NestedServletException: Handler dispatch failed; nested exception is java.lang.BootstrapMethodError: java.lang.NoCla 阅读全文

posted @ 2023-04-28 13:52 何苦-> 阅读(96) 评论(0) 推荐(0) 编辑

SpringBoot监控Actuator,关闭redis监测
摘要:当我们导入了spring-boot-starter-actuator这个依赖后, SpringBoot会默认去监测一些信息。其中就包括redis、 会根据redis的默认初始配置, localhost:6379 尝试连接redis。如果我们没有用到redis, 启动就会报错 <dependency> 阅读全文

posted @ 2023-04-25 10:59 何苦-> 阅读(743) 评论(0) 推荐(0) 编辑

RedisTemplate使用PipeLine
摘要:SpringBoot集成RedisTemplate 导入依赖 <!--Redis--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artif 阅读全文

posted @ 2023-04-20 14:00 何苦-> 阅读(2032) 评论(0) 推荐(0) 编辑

redisTemplate
摘要:RedisTemplate // 设置序列化 redisTemplate.setDefaultSerializer(new FastJsonRedisSerializer<>(Object.class)); redisTemplate.setValueSerializer(new GenericFa 阅读全文

posted @ 2023-04-20 11:36 何苦-> 阅读(130) 评论(0) 推荐(0) 编辑

Spring Cloud Config 本地配置覆盖远程配置
摘要:Spring Cloud Config 配置的优先级 远程配置 > 本地配置 > java代码配置 当需要本地配置优先时,可以限制远程配置的优先级 配置 spring: cloud: config: allow-override: true override-none: true override- 阅读全文

posted @ 2023-03-23 18:04 何苦-> 阅读(369) 评论(0) 推荐(0) 编辑

IDEA报错Error running ‘Application‘: Command line is too long解决方案
摘要:IDEA报错Error running 'Application': Command line is too long.Shorten command line for Application or also for Spring Boot default configuration 问题背景 解决 阅读全文

posted @ 2023-02-28 16:46 何苦-> 阅读(2310) 评论(0) 推荐(0) 编辑

日志输出 logback 使用
摘要:概览 Logback 主要由三个模块组成 logback-core 是其它模块的基础设施,其它模块基于它构建,显然,logback-core 提供了一些关键的通用机制 logback-classic 地位和作用等同于 Log4J,它也被认为是 Log4J 的一个改进版,并且它实现了简单日志门面 SL 阅读全文

posted @ 2022-02-01 17:31 何苦-> 阅读(277) 评论(0) 推荐(0) 编辑

导航

< 2025年2月 >
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 1
2 3 4 5 6 7 8
点击右上角即可分享
微信分享提示