- 博客(4)
- 收藏
- 关注
原创 可配置的定时任务(只修改小时)
通过读取数据库,配置定时任务 1.controller @Slf4j @RestController @RequestMapping(value = "/yfgs/cron") @Api(description = "定时任务corn") public class CornController { @Autowired public CornService cornService...
2020-02-14 15:25:30 354
原创 NumberFormat](字符串和百分数转换)
@NumberFormat public ResultVo<CurrentStateResponseVO> getCurrentStateInfo(CurrentStateRequestVO request) { ResultVo<CurrentStateResponseVO> currentStateResponseVOResultVo = airpo...
2019-12-11 13:08:24 1197
原创 SimpleDateFormat之时间日期转换
@SimpleDateFormat Date date = null; SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); try { date = sdf.parse(request.getPlegDate()); } catch (ParseExceptio...
2019-12-09 12:08:19 145
原创 日期转换注解@DataTimeFormat和@JsonFormat
日期转换注解@DataTimeFormat和@JsonFormat Spring中有@DataTimeFormat和@JsonFormat 注意:@JsonFormat不要忘了加GMT+8 @DateTimeFormat要注意前台传过的日期格式是yyyy-MM-dd的形式,如果你传了一 个yyyyMMdd的形式会报错(日期格式基于下面的程序): @DateTimeFormat(pattern ...
2019-12-05 18:13:18 1292
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人