You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by ma...@apache.org on 2019/08/08 01:30:14 UTC
[servicecomb-samples] 35/43: UserCenter service initail version
This is an automated email from the ASF dual-hosted git repository.
mabin pushed a commit to branch houserush-sample
in repository https://gitbox.apache.org/repos/asf/servicecomb-samples.git
commit 4b3eee26b4f62aef9b84cb42070bea61a86ae397
Author: chuck <40...@users.noreply.github.com>
AuthorDate: Tue Aug 6 10:49:56 2019 +0800
UserCenter service initail version
UserCenter service initail version
---
.../houserush/user/center/UserCenterApplication.java | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/houserush/user-center/src/main/java/org/apache/servicecomb/samples/practise/houserush/user/center/UserCenterApplication.java b/houserush/user-center/src/main/java/org/apache/servicecomb/samples/practise/houserush/user/center/UserCenterApplication.java
index 664c3ed..edff407 100644
--- a/houserush/user-center/src/main/java/org/apache/servicecomb/samples/practise/houserush/user/center/UserCenterApplication.java
+++ b/houserush/user-center/src/main/java/org/apache/servicecomb/samples/practise/houserush/user/center/UserCenterApplication.java
@@ -29,14 +29,14 @@ import java.util.TimeZone;
@EnableServiceComb
public class UserCenterApplication {
- public static void main(String[] args) {
- configBeforeBoot();
- SpringApplication.run(UserCenterApplication.class, args);
- }
+ public static void main(String[] args) {
+ configBeforeBoot();
+ SpringApplication.run(UserCenterApplication.class, args);
+ }
- private static void configBeforeBoot() {
- SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
- simpleDateFormat.setTimeZone(TimeZone.getTimeZone("Asia/Shanghai"));
- RestObjectMapperFactory.getRestObjectMapper().setDateFormat(simpleDateFormat);
- }
+ private static void configBeforeBoot() {
+ SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
+ simpleDateFormat.setTimeZone(TimeZone.getTimeZone("Asia/Shanghai"));
+ RestObjectMapperFactory.getRestObjectMapper().setDateFormat(simpleDateFormat);
+ }
}