摘要:
spring有一套缓存注解,一般会使用到@Cacheable,@CachePut , @CacheEvict这三个注解。 在@CacheEvict清除缓存的的注解中有一个allEntries属性,默认值未false,当指定allEntries的值为true时,会忽略指定key,清除value对应缓存 阅读全文
摘要:
@TableField 1.value 字段值(驼峰命名方式,该值可无) 2.exist 是否为数据库表字段,默认 true 存在,false 不存在 3.condition 字段 where 实体查询比较条件,默认 `=` 等值 4.update 字段 update set 部分注入, 该注解优于 阅读全文
摘要:
package.json增加配置 "scripts": { "serve": "set NODE_OPTIONS openssl-legacy-provider && vue-cli-service serve", "build": "vue-cli-service build" }, 原文链接:h 阅读全文
摘要:
@order注解是spring-core包下的一个注解,@Order的作用是定义Spring IOC容器中Bean的执行顺序的优先级(这里的顺序也可以理解为存放到容器中的先后顺序)。 遇到过使用@Order的场景: 某个利用Redis incr自增编码,服务迁移,Redis数据没有维护好,导致自增的 阅读全文
摘要:
循环依赖会报以下错误信息: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'xxxConfiguration': Unsatisfied dependen 阅读全文
摘要:
当天最大时间: LocalDateTime max = LocalDateTime.of(LocalDate.from(LocalDateTime.now()),LocalDateTime.MAX.toLocalTime()); 当天最小时间: LocalDateTime min = LocalDa 阅读全文
摘要:
https://blog.csdn.net/qq_44375810/article/details/118863413 阅读全文
摘要:
服务部署成功,但是每次进入登录页面都报一下错误,需要重新刷新才可以,推测试Nginx跳转出问题。 后来在Nginx配置文件加了这两行再重启就可以了。 index index.html index.htm; try_files $uri $uri/ /index.html; 校验Nginx配置文件格式 阅读全文
摘要:
EasyExcel导入导出多sheet页 依赖 <dependency> <groupId>com.alibaba</groupId> <artifactId>easyexcel</artifactId> <version>3.1.0</version> <scope>compile</scope> 阅读全文
摘要:
list.stream() .collect( Collectors.collectingAndThen( Collectors.toCollection( () -> new TreeSet<>(Comparator.comparing(e -> e.getId)) ), ArrayList::n 阅读全文