java
Dongdong12138
自己用的东西,随时记录
展开
-
通过redis自动生成流水号 20200914001形式 年月日+000
/** * 生成流水号 * * @param moduleCode 模块code * @return */ public String generate(String moduleCode) { //** 获取今天的日期:yyyyMMdd *//* String currentDate = SequenceUtils.getCurentDate(); Long num = redisUtil.getIn原创 2020-09-14 16:44:07 · 614 阅读 · 0 评论 -
spring a bean of type 'org.springframework.' that could not be found
出现spring a bean of type ‘******’ that could not be found 之类的问题主要看三个地方。 第一个看pom文件是否引入架包,引入的架包是否有冲突。 第二个去看启动类文件@ComponentScan(basePackages = {“com.bc”}) 或者@EnableFeignClients(basePackages = (“com.bc”))...原创 2019-11-14 17:56:46 · 613 阅读 · 0 评论