随笔分类 - Java框架
摘要:Redis客户端配置优化建议 配置项 默认值 描述 中文描述 spring.redis.lettuce.cluster.refresh.adaptive false Whether adaptive topology refreshing using all available refresh tr
阅读全文
摘要:方式一: 在 直接在 main 方法中,根据 SpringApplication.run() 方法获取返回的 Spring 容器对象context上下文,再获取业务 bean 进行调用。 @SpringBootApplication public class Application { public
阅读全文
摘要:借用MySQL函数实现 long 转 timestamp:FROM_UNIXTIME(long, [format]) 示例:限制10位时间戳,13位不可以 FROM_UNIXTIME(1249488000) 或 FROM_UNIXTIME(1249488000, '%Y-%M-%d %H:%m:%s
阅读全文