上一页 1 ··· 28 29 30 31 32 33 34 35 36 ··· 38 下一页
摘要: <!-- profiles.active默认激活dev --> <profiles> <profile> <!-- 声明这个profile的id身份 --> <id>dev</id> <!-- 默认激活:比如当知心mvn package命令是,没有传入参数,默认使用这个 当使用mvn package 阅读全文
posted @ 2021-01-15 14:45 Bonnie_ξ 阅读(1297) 评论(0) 推荐(1) 编辑
摘要: 创建工程 首先是创建工程,和前文一样,创建工程时,也是选择 Web、Jdbc 以及 MySQL 驱动,如下图: 创建成功之后,一定接下来手动添加 Druid 依赖,由于这里一会需要开发者自己配置 DataSoruce,所以这里必须要使用 druid-spring-boot-starter 依赖,而不 阅读全文
posted @ 2021-01-14 10:54 Bonnie_ξ 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 文章目录 一、方法说明 1、shutdown():停止接收新任务,原来的任务继续执行 2、shutdownNow():停止接收新任务,原来的任务停止执行 3、awaitTermination(long timeOut, TimeUnit unit):当前线程阻塞 二、区别 1、shutdown() 阅读全文
posted @ 2021-01-13 14:21 Bonnie_ξ 阅读(263) 评论(0) 推荐(0) 编辑
摘要: 随机数 //进入发送逻辑的时候生成随机验证码,六位数字sale = RandomStringUtils.randomNumeric(6); 随机数范围 import java.util.Random; public class RandomUtil { public static Integer g 阅读全文
posted @ 2021-01-12 15:29 Bonnie_ξ 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 图片下载工具类 package com.zxwa.ntmss.img2text.utils; import cn.hutool.core.util.StrUtil; import com.zxwa.ntmss.process.config.OcrConfig; import org.slf4j.Lo 阅读全文
posted @ 2021-01-12 11:58 Bonnie_ξ 阅读(84) 评论(0) 推荐(0) 编辑
摘要: pom <!-- logback+slf4j --> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-api</artifactId> <version>1.7.25</version> </dependency> <depen 阅读全文
posted @ 2021-01-12 11:23 Bonnie_ξ 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 来自 https://www.redis.net.cn/tutorial/3503.html https://www.cnblogs.com/zhou-zr/p/14691939.html https://files.cnblogs.com/files/luweiweicode/redis-3.0. 阅读全文
posted @ 2021-01-11 11:52 Bonnie_ξ 阅读(61) 评论(0) 推荐(0) 编辑
摘要: String.format()字符串常规类型格式化的两种重载方式 format(String format, Object… args) 新字符串使用本地语言环境,制定字符串格式和参数生成格式化的新字符串。 format(Locale locale, String format, Object… a 阅读全文
posted @ 2021-01-09 14:32 Bonnie_ξ 阅读(720) 评论(0) 推荐(0) 编辑
摘要: Redis生成分布式环境下自增ID 1. 需求明确 我们生成的Id组成为, 时间戳+ 自增Id, 补0 例如: 今天是2020.2.28 , 补6个0 , 那么生成的id范围是20200228000001-202002289999999 2.技术选型 Redis中的RedisAtomicLong 具 阅读全文
posted @ 2021-01-08 17:14 Bonnie_ξ 阅读(361) 评论(0) 推荐(0) 编辑
摘要: pom <!-- Redis 官方提供的 Java 驱动 --> <dependency> <groupId>redis.clients</groupId> <artifactId>jedis</artifactId> <version>2.9.0</version> </dependency> < 阅读全文
posted @ 2021-01-08 16:07 Bonnie_ξ 阅读(97) 评论(0) 推荐(0) 编辑
上一页 1 ··· 28 29 30 31 32 33 34 35 36 ··· 38 下一页