自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(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 336

原创 NumberFormat](字符串和百分数转换)

@NumberFormat public ResultVo<CurrentStateResponseVO> getCurrentStateInfo(CurrentStateRequestVO request) { ResultVo<CurrentStateResponseVO> currentStateResponseVOResultVo = airpo...

2019-12-11 13:08:24 1151

原创 SimpleDateFormat之时间日期转换

@SimpleDateFormatDate date = null; SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); try { date = sdf.parse(request.getPlegDate()); } catch (ParseExceptio...

2019-12-09 12:08:19 109

原创 日期转换注解@DataTimeFormat和@JsonFormat

日期转换注解@DataTimeFormat和@JsonFormatSpring中有@DataTimeFormat和@JsonFormat注意:@JsonFormat不要忘了加GMT+8@DateTimeFormat要注意前台传过的日期格式是yyyy-MM-dd的形式,如果你传了一 个yyyyMMdd的形式会报错(日期格式基于下面的程序):@DateTimeFormat(pattern ...

2019-12-05 18:13:18 1235

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除