也许是由于版本的原因,把SpringBoot2的改为了SpringBoot1.5,发现在swagger这个接口文档突然不能用了。出现了下面的错误Unable to infer base url. This is common when using dynamic servlet registration or when the API is behind an API Gateway. Th...
时间转换为时间戳(10位) public static long dateToTimestamp(String time) {
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
try {
Date date = simpleDateForm...