摘要:
1、场景 1)参数为实体类 web层需要对前端传输的数据做校验,如果按照下面的代码写,就太浪费时间了,并且代码看起来很乱。 public AjaxResult queryUserProjectContent(AppletProject appletProject){ if (appletProjec 阅读全文
摘要:
项目中有些场景需要监听redis中的过期事件,如订单过期等场景,以Spring boot为例,大致写下代码。 1、引用redis的包 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-st 阅读全文