Skip to content

Commit fa8681d

Browse files
committed
fix
Signed-off-by: yuluo-yx <[email protected]>
1 parent 88bb8ab commit fa8681d

File tree

2 files changed

+20
-72
lines changed

2 files changed

+20
-72
lines changed

common/src/main/java/org/apache/hertzbeat/common/config/MVCConfig.java

+20-8
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,26 @@
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+
118
package org.apache.hertzbeat.common.config;
219

320
import java.text.SimpleDateFormat;
421
import java.time.LocalDate;
522
import java.time.LocalDateTime;
623
import java.time.LocalTime;
7-
import java.time.OffsetDateTime;
8-
import java.time.OffsetTime;
9-
import java.time.ZonedDateTime;
1024
import java.time.format.DateTimeFormatter;
1125
import java.util.List;
1226
import java.util.TimeZone;
@@ -31,18 +45,16 @@
3145
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
3246

3347
/**
34-
* @author yuluo
35-
* @author <a href="mailto:[email protected]">yuluo</a>
48+
* MVC Configuration.
3649
*/
3750

3851
@Configuration
3952
public class MVCConfig implements WebMvcConfigurer {
4053

41-
/** 默认日期时间格式 */
4254
public static final String DEFAULT_DATE_TIME_FORMAT = "yyyy-MM-dd'T'HH:mm:ss";
43-
/** 默认日期格式 */
55+
4456
public static final String DEFAULT_DATE_FORMAT = "yyyy-MM-dd";
45-
/** 默认时间格式 */
57+
4658
public static final String DEFAULT_TIME_FORMAT = "HH:mm:ss";
4759

4860
@Autowired

manager/src/main/java/org/apache/hertzbeat/manager/config/JacksonConfig.java

-64
This file was deleted.

0 commit comments

Comments
 (0)