- 博客(3)
- 收藏
- 关注
原创 记录一下springboot拦截器
import lombok.extern.slf4j.Slf4j; import org.springframework.web.servlet.HandlerInterceptor; import org.springframework.web.servlet.ModelAndView; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.se.
2022-04-19 20:46:26 81
原创 记录一下springboot文件上传:MultipartFile
//将附图上传服务器 @RequestMapping(value ="/uploadFigure", method = RequestMethod.POST) @ResponseBody public Result uploadFigure(@RequestParam("userId") String userId, @RequestParam("photos") MultipartFile[] files){ try { if.
2022-04-19 19:04:37 258
原创 记录一下Springboot定时任务实现:@Scheduled
使用Springboot原生的Task Schedule模块实现任务调度 第一步:在启动类加入注解@EnableScheduling 第二步在任务类方法上加注解@Scheduled(cron = "*/30 * * * * ?")(此例效果为每隔30秒执行一次)
2022-03-18 11:14:59 502
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人