|
| 1 | +/* |
| 2 | + * Licensed to the Apache Software Foundation (ASF) under one or more |
| 3 | + * contributor license agreements. See the NOTICE file distributed with |
| 4 | + * this work for additional information regarding copyright ownership. |
| 5 | + * The ASF licenses this file to You under the Apache License, Version 2.0 |
| 6 | + * (the "License"); you may not use this file except in compliance with |
| 7 | + * the License. You may obtain a copy of the License at |
| 8 | + * |
| 9 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | + * |
| 11 | + * Unless required by applicable law or agreed to in writing, software |
| 12 | + * distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | + * See the License for the specific language governing permissions and |
| 15 | + * limitations under the License. |
| 16 | + */ |
| 17 | + |
1 | 18 | package org.apache.hertzbeat.common.config;
|
2 | 19 |
|
3 | 20 | import java.text.SimpleDateFormat;
|
4 | 21 | import java.time.LocalDate;
|
5 | 22 | import java.time.LocalDateTime;
|
6 | 23 | import java.time.LocalTime;
|
7 |
| -import java.time.OffsetDateTime; |
8 |
| -import java.time.OffsetTime; |
9 |
| -import java.time.ZonedDateTime; |
10 | 24 | import java.time.format.DateTimeFormatter;
|
11 | 25 | import java.util.List;
|
12 | 26 | import java.util.TimeZone;
|
|
31 | 45 | import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
|
32 | 46 |
|
33 | 47 | /**
|
34 |
| - * @author yuluo |
35 |
| - * @author <a href="mailto:[email protected]">yuluo</a> |
| 48 | + * MVC Configuration. |
36 | 49 | */
|
37 | 50 |
|
38 | 51 | @Configuration
|
39 | 52 | public class MVCConfig implements WebMvcConfigurer {
|
40 | 53 |
|
41 |
| - /** 默认日期时间格式 */ |
42 | 54 | public static final String DEFAULT_DATE_TIME_FORMAT = "yyyy-MM-dd'T'HH:mm:ss";
|
43 |
| - /** 默认日期格式 */ |
| 55 | + |
44 | 56 | public static final String DEFAULT_DATE_FORMAT = "yyyy-MM-dd";
|
45 |
| - /** 默认时间格式 */ |
| 57 | + |
46 | 58 | public static final String DEFAULT_TIME_FORMAT = "HH:mm:ss";
|
47 | 59 |
|
48 | 60 | @Autowired
|
|
0 commit comments