This is an automated email from the ASF dual-hosted git repository.

gaoxihui pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozhera.git


The following commit(s) were added to refs/heads/master by this push:
     new 4fd427e7 fix: update demo-client and demo-server file header (#507)
4fd427e7 is described below

commit 4fd427e7ec5ec3d5dc277c529c1702f552ee94be
Author: EricDing <[email protected]>
AuthorDate: Tue Nov 19 17:42:21 2024 +0800

    fix: update demo-client and demo-server file header (#507)
    
    * fix: delete unused annotation
    
    * fix: upgrade app-api and app-common version to 3
    
    * fix: delete rocksDB unit test
    
    * fix: update trace-etl file header, include java and md file
    
    * fix: update demo-client and demo-server file header
    
    * fix: add trace-etl file header type, properties and xml
---
 ozhera-demo-client/README.md                       | 21 ++++++
 ozhera-demo-client/README_cn.md                    | 21 ++++++
 ozhera-demo-client/ozhera-demo-client-api/pom.xml  | 21 ++++++
 .../client/api/service/DubboHealthService.java     | 26 ++++---
 .../ozhera-demo-client-common/pom.xml              | 21 ++++++
 .../ozhera-demo-client-server/pom.xml              | 21 ++++++
 .../client/bootstrap/HeraDemoClientBootstrap.java  | 26 ++++---
 .../demo/client/config/DubboConfiguration.java     | 28 ++++----
 .../demo/client/config/NacosConfiguration.java     | 26 ++++---
 .../client/config/PrometheusConfiguration.java     | 28 ++++----
 .../ozhera/demo/client/config/RedisConfig.java     | 26 ++++---
 .../demo/client/controller/TestController.java     | 28 ++++----
 .../ozhera/demo/client/grpc/GrpcClientService.java | 28 ++++----
 .../ozhera/demo/client/util/HttpClientUtil.java    | 28 ++++----
 .../src/main/resources/application.properties      | 15 ++++
 .../main/resources/config/open-source.properties   | 15 ++++
 .../src/main/resources/logback.xml                 | 21 ++++++
 .../ozhera-demo-client-service/pom.xml             | 21 ++++++
 .../client/service/DubboHealthServiceImpl.java     | 28 ++++----
 ozhera-demo-client/pom.xml                         | 23 +++++-
 ozhera-demo-server/README.md                       | 21 ++++++
 ozhera-demo-server/README_cn.md                    | 21 ++++++
 ozhera-demo-server/ozhera-demo-server-api/pom.xml  | 21 ++++++
 .../demo/server/service/DubboHealthService.java    | 26 ++++---
 .../ozhera-demo-server-server/pom.xml              | 21 ++++++
 .../demo/server/HeraDemoServerBootstrap.java       | 26 ++++---
 .../demo/server/config/DubboConfiguration.java     | 26 ++++---
 .../demo/server/config/NacosConfiguration.java     | 26 ++++---
 .../ozhera/demo/server/grpc/MyServiceImpl.java     | 83 +++++-----------------
 .../server/service/DubboHealthServiceImpl.java     | 26 ++++---
 .../src/main/resources/application.properties      | 15 ++++
 .../main/resources/config/open-source.properties   | 15 ++++
 .../src/main/resources/logback.xml                 | 21 ++++++
 ozhera-demo-server/pom.xml                         | 23 +++++-
 34 files changed, 606 insertions(+), 237 deletions(-)

diff --git a/ozhera-demo-client/README.md b/ozhera-demo-client/README.md
index c4859ab3..118ca200 100644
--- a/ozhera-demo-client/README.md
+++ b/ozhera-demo-client/README.md
@@ -1,2 +1,23 @@
+<!--
+
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+
+-->
+
 # introduction
 OzHera demo client
\ No newline at end of file
diff --git a/ozhera-demo-client/README_cn.md b/ozhera-demo-client/README_cn.md
index 5fb4b97f..0d17cea7 100644
--- a/ozhera-demo-client/README_cn.md
+++ b/ozhera-demo-client/README_cn.md
@@ -1,2 +1,23 @@
+<!--
+
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+
+-->
+
 # 概述
 OzHera demo client
\ No newline at end of file
diff --git a/ozhera-demo-client/ozhera-demo-client-api/pom.xml 
b/ozhera-demo-client/ozhera-demo-client-api/pom.xml
index 571b2066..0352da81 100644
--- a/ozhera-demo-client/ozhera-demo-client-api/pom.xml
+++ b/ozhera-demo-client/ozhera-demo-client-api/pom.xml
@@ -1,4 +1,25 @@
 <?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+
+-->
+
 <project xmlns="http://maven.apache.org/POM/4.0.0";
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd";>
diff --git 
a/ozhera-demo-client/ozhera-demo-client-api/src/main/java/org/apache/ozhera/demo/client/api/service/DubboHealthService.java
 
b/ozhera-demo-client/ozhera-demo-client-api/src/main/java/org/apache/ozhera/demo/client/api/service/DubboHealthService.java
index ba538219..52911a99 100644
--- 
a/ozhera-demo-client/ozhera-demo-client-api/src/main/java/org/apache/ozhera/demo/client/api/service/DubboHealthService.java
+++ 
b/ozhera-demo-client/ozhera-demo-client-api/src/main/java/org/apache/ozhera/demo/client/api/service/DubboHealthService.java
@@ -1,18 +1,22 @@
 /*
- * Copyright (C) 2020 Xiaomi Corporation
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
- *  Licensed under the Apache License, Version 2.0 (the "License");
- *  you may not use this file except in compliance with the License.
- *  You may obtain a copy of the License at
+ *   http://www.apache.org/licenses/LICENSE-2.0
  *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- *  Unless required by applicable law or agreed to in writing, software
- *  distributed under the License is distributed on an "AS IS" BASIS,
- *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- *  See the License for the specific language governing permissions and
- *  limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  */
+
 package org.apache.ozhera.demo.client.api.service;
 
 
diff --git a/ozhera-demo-client/ozhera-demo-client-common/pom.xml 
b/ozhera-demo-client/ozhera-demo-client-common/pom.xml
index 27dc940f..b06147fd 100644
--- a/ozhera-demo-client/ozhera-demo-client-common/pom.xml
+++ b/ozhera-demo-client/ozhera-demo-client-common/pom.xml
@@ -1,4 +1,25 @@
 <?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+
+-->
+
 <project xmlns="http://maven.apache.org/POM/4.0.0";
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd";>
diff --git a/ozhera-demo-client/ozhera-demo-client-server/pom.xml 
b/ozhera-demo-client/ozhera-demo-client-server/pom.xml
index 5317eed4..78ce108c 100644
--- a/ozhera-demo-client/ozhera-demo-client-server/pom.xml
+++ b/ozhera-demo-client/ozhera-demo-client-server/pom.xml
@@ -1,4 +1,25 @@
 <?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+
+-->
+
 <project xmlns="http://maven.apache.org/POM/4.0.0";
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd";>
diff --git 
a/ozhera-demo-client/ozhera-demo-client-server/src/main/java/org/apache/ozhera/demo/client/bootstrap/HeraDemoClientBootstrap.java
 
b/ozhera-demo-client/ozhera-demo-client-server/src/main/java/org/apache/ozhera/demo/client/bootstrap/HeraDemoClientBootstrap.java
index 0b595f13..76e4204c 100644
--- 
a/ozhera-demo-client/ozhera-demo-client-server/src/main/java/org/apache/ozhera/demo/client/bootstrap/HeraDemoClientBootstrap.java
+++ 
b/ozhera-demo-client/ozhera-demo-client-server/src/main/java/org/apache/ozhera/demo/client/bootstrap/HeraDemoClientBootstrap.java
@@ -1,18 +1,22 @@
 /*
- * Copyright (C) 2020 Xiaomi Corporation
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
- *  Licensed under the Apache License, Version 2.0 (the "License");
- *  you may not use this file except in compliance with the License.
- *  You may obtain a copy of the License at
+ *   http://www.apache.org/licenses/LICENSE-2.0
  *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- *  Unless required by applicable law or agreed to in writing, software
- *  distributed under the License is distributed on an "AS IS" BASIS,
- *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- *  See the License for the specific language governing permissions and
- *  limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  */
+
 package org.apache.ozhera.demo.client.bootstrap;
 
 import lombok.extern.slf4j.Slf4j;
diff --git 
a/ozhera-demo-client/ozhera-demo-client-server/src/main/java/org/apache/ozhera/demo/client/config/DubboConfiguration.java
 
b/ozhera-demo-client/ozhera-demo-client-server/src/main/java/org/apache/ozhera/demo/client/config/DubboConfiguration.java
index 00e08499..f3122822 100644
--- 
a/ozhera-demo-client/ozhera-demo-client-server/src/main/java/org/apache/ozhera/demo/client/config/DubboConfiguration.java
+++ 
b/ozhera-demo-client/ozhera-demo-client-server/src/main/java/org/apache/ozhera/demo/client/config/DubboConfiguration.java
@@ -1,18 +1,22 @@
 /*
- * Copyright (C) 2020 Xiaomi Corporation
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
- *  Licensed under the Apache License, Version 2.0 (the "License");
- *  you may not use this file except in compliance with the License.
- *  You may obtain a copy of the License at
+ *   http://www.apache.org/licenses/LICENSE-2.0
  *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- *  Unless required by applicable law or agreed to in writing, software
- *  distributed under the License is distributed on an "AS IS" BASIS,
- *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- *  See the License for the specific language governing permissions and
- *  limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  */
+
 package org.apache.ozhera.demo.client.config;
 
 import com.google.common.collect.Maps;
@@ -63,4 +67,4 @@ public class DubboConfiguration {
         return protocolConfig;
     }
 
-}
+}
\ No newline at end of file
diff --git 
a/ozhera-demo-client/ozhera-demo-client-server/src/main/java/org/apache/ozhera/demo/client/config/NacosConfiguration.java
 
b/ozhera-demo-client/ozhera-demo-client-server/src/main/java/org/apache/ozhera/demo/client/config/NacosConfiguration.java
index 674eb081..28cffe24 100644
--- 
a/ozhera-demo-client/ozhera-demo-client-server/src/main/java/org/apache/ozhera/demo/client/config/NacosConfiguration.java
+++ 
b/ozhera-demo-client/ozhera-demo-client-server/src/main/java/org/apache/ozhera/demo/client/config/NacosConfiguration.java
@@ -1,18 +1,22 @@
 /*
- * Copyright (C) 2020 Xiaomi Corporation
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
- *  Licensed under the Apache License, Version 2.0 (the "License");
- *  you may not use this file except in compliance with the License.
- *  You may obtain a copy of the License at
+ *   http://www.apache.org/licenses/LICENSE-2.0
  *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- *  Unless required by applicable law or agreed to in writing, software
- *  distributed under the License is distributed on an "AS IS" BASIS,
- *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- *  See the License for the specific language governing permissions and
- *  limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  */
+
 package org.apache.ozhera.demo.client.config;
 
 import com.alibaba.nacos.api.annotation.NacosProperties;
diff --git 
a/ozhera-demo-client/ozhera-demo-client-server/src/main/java/org/apache/ozhera/demo/client/config/PrometheusConfiguration.java
 
b/ozhera-demo-client/ozhera-demo-client-server/src/main/java/org/apache/ozhera/demo/client/config/PrometheusConfiguration.java
index 9e2df468..06c49843 100644
--- 
a/ozhera-demo-client/ozhera-demo-client-server/src/main/java/org/apache/ozhera/demo/client/config/PrometheusConfiguration.java
+++ 
b/ozhera-demo-client/ozhera-demo-client-server/src/main/java/org/apache/ozhera/demo/client/config/PrometheusConfiguration.java
@@ -1,18 +1,22 @@
 /*
- * Copyright (C) 2020 Xiaomi Corporation
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
- *  Licensed under the Apache License, Version 2.0 (the "License");
- *  you may not use this file except in compliance with the License.
- *  You may obtain a copy of the License at
+ *   http://www.apache.org/licenses/LICENSE-2.0
  *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- *  Unless required by applicable law or agreed to in writing, software
- *  distributed under the License is distributed on an "AS IS" BASIS,
- *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- *  See the License for the specific language governing permissions and
- *  limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  */
+
 package org.apache.ozhera.demo.client.config;
 
 import org.apache.ozhera.prometheus.starter.all.config.PrometheusConfigure;
@@ -39,4 +43,4 @@ public class PrometheusConfiguration {
     public void init(){
         PrometheusConfigure.init(nacosAddr, serverType);
     }
-}
+}
\ No newline at end of file
diff --git 
a/ozhera-demo-client/ozhera-demo-client-server/src/main/java/org/apache/ozhera/demo/client/config/RedisConfig.java
 
b/ozhera-demo-client/ozhera-demo-client-server/src/main/java/org/apache/ozhera/demo/client/config/RedisConfig.java
index 40ba26d5..8b5a3a62 100644
--- 
a/ozhera-demo-client/ozhera-demo-client-server/src/main/java/org/apache/ozhera/demo/client/config/RedisConfig.java
+++ 
b/ozhera-demo-client/ozhera-demo-client-server/src/main/java/org/apache/ozhera/demo/client/config/RedisConfig.java
@@ -1,18 +1,22 @@
 /*
- * Copyright (C) 2020 Xiaomi Corporation
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
- *  Licensed under the Apache License, Version 2.0 (the "License");
- *  you may not use this file except in compliance with the License.
- *  You may obtain a copy of the License at
+ *   http://www.apache.org/licenses/LICENSE-2.0
  *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- *  Unless required by applicable law or agreed to in writing, software
- *  distributed under the License is distributed on an "AS IS" BASIS,
- *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- *  See the License for the specific language governing permissions and
- *  limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  */
+
 package org.apache.ozhera.demo.client.config;
 
 import lombok.extern.slf4j.Slf4j;
diff --git 
a/ozhera-demo-client/ozhera-demo-client-server/src/main/java/org/apache/ozhera/demo/client/controller/TestController.java
 
b/ozhera-demo-client/ozhera-demo-client-server/src/main/java/org/apache/ozhera/demo/client/controller/TestController.java
index bc3ca6ec..04d76f62 100644
--- 
a/ozhera-demo-client/ozhera-demo-client-server/src/main/java/org/apache/ozhera/demo/client/controller/TestController.java
+++ 
b/ozhera-demo-client/ozhera-demo-client-server/src/main/java/org/apache/ozhera/demo/client/controller/TestController.java
@@ -1,18 +1,22 @@
 /*
- * Copyright (C) 2020 Xiaomi Corporation
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
- *  Licensed under the Apache License, Version 2.0 (the "License");
- *  you may not use this file except in compliance with the License.
- *  You may obtain a copy of the License at
+ *   http://www.apache.org/licenses/LICENSE-2.0
  *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- *  Unless required by applicable law or agreed to in writing, software
- *  distributed under the License is distributed on an "AS IS" BASIS,
- *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- *  See the License for the specific language governing permissions and
- *  limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  */
+
 package org.apache.ozhera.demo.client.controller;
 
 import com.xiaomi.hera.trace.annotation.Trace;
@@ -158,4 +162,4 @@ public class TestController {
         return null;
     }
 
-}
+}
\ No newline at end of file
diff --git 
a/ozhera-demo-client/ozhera-demo-client-server/src/main/java/org/apache/ozhera/demo/client/grpc/GrpcClientService.java
 
b/ozhera-demo-client/ozhera-demo-client-server/src/main/java/org/apache/ozhera/demo/client/grpc/GrpcClientService.java
index 807819fc..e57c10c2 100644
--- 
a/ozhera-demo-client/ozhera-demo-client-server/src/main/java/org/apache/ozhera/demo/client/grpc/GrpcClientService.java
+++ 
b/ozhera-demo-client/ozhera-demo-client-server/src/main/java/org/apache/ozhera/demo/client/grpc/GrpcClientService.java
@@ -1,18 +1,22 @@
 /*
- * Copyright (C) 2020 Xiaomi Corporation
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
- *  Licensed under the Apache License, Version 2.0 (the "License");
- *  you may not use this file except in compliance with the License.
- *  You may obtain a copy of the License at
+ *   http://www.apache.org/licenses/LICENSE-2.0
  *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- *  Unless required by applicable law or agreed to in writing, software
- *  distributed under the License is distributed on an "AS IS" BASIS,
- *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- *  See the License for the specific language governing permissions and
- *  limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  */
+
 package org.apache.ozhera.demo.client.grpc;
 
 
@@ -48,4 +52,4 @@ public class GrpcClientService {
         return myServiceStub.error(request).getMessage();
     }
 
-}
+}
\ No newline at end of file
diff --git 
a/ozhera-demo-client/ozhera-demo-client-server/src/main/java/org/apache/ozhera/demo/client/util/HttpClientUtil.java
 
b/ozhera-demo-client/ozhera-demo-client-server/src/main/java/org/apache/ozhera/demo/client/util/HttpClientUtil.java
index edab7680..d3946b04 100755
--- 
a/ozhera-demo-client/ozhera-demo-client-server/src/main/java/org/apache/ozhera/demo/client/util/HttpClientUtil.java
+++ 
b/ozhera-demo-client/ozhera-demo-client-server/src/main/java/org/apache/ozhera/demo/client/util/HttpClientUtil.java
@@ -1,18 +1,22 @@
 /*
- * Copyright (C) 2020 Xiaomi Corporation
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
- *  Licensed under the Apache License, Version 2.0 (the "License");
- *  you may not use this file except in compliance with the License.
- *  You may obtain a copy of the License at
+ *   http://www.apache.org/licenses/LICENSE-2.0
  *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- *  Unless required by applicable law or agreed to in writing, software
- *  distributed under the License is distributed on an "AS IS" BASIS,
- *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- *  See the License for the specific language governing permissions and
- *  limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  */
+
 package org.apache.ozhera.demo.client.util;
 
 import org.apache.http.HttpResponse;
@@ -135,4 +139,4 @@ public class HttpClientUtil {
 
                return System.currentTimeMillis();
        }
-}
+}
\ No newline at end of file
diff --git 
a/ozhera-demo-client/ozhera-demo-client-server/src/main/resources/application.properties
 
b/ozhera-demo-client/ozhera-demo-client-server/src/main/resources/application.properties
index 5f249677..b3e88475 100644
--- 
a/ozhera-demo-client/ozhera-demo-client-server/src/main/resources/application.properties
+++ 
b/ozhera-demo-client/ozhera-demo-client-server/src/main/resources/application.properties
@@ -1,3 +1,18 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
 #server
 app.name=hera-demo-client
 server.type=${server.type}
diff --git 
a/ozhera-demo-client/ozhera-demo-client-server/src/main/resources/config/open-source.properties
 
b/ozhera-demo-client/ozhera-demo-client-server/src/main/resources/config/open-source.properties
index f1f9fbaf..801eb58c 100644
--- 
a/ozhera-demo-client/ozhera-demo-client-server/src/main/resources/config/open-source.properties
+++ 
b/ozhera-demo-client/ozhera-demo-client-server/src/main/resources/config/open-source.properties
@@ -1,3 +1,18 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
 #server
 server.type=dev
 server.port=8085
diff --git 
a/ozhera-demo-client/ozhera-demo-client-server/src/main/resources/logback.xml 
b/ozhera-demo-client/ozhera-demo-client-server/src/main/resources/logback.xml
index 2f3b5d97..f9098fd5 100644
--- 
a/ozhera-demo-client/ozhera-demo-client-server/src/main/resources/logback.xml
+++ 
b/ozhera-demo-client/ozhera-demo-client-server/src/main/resources/logback.xml
@@ -1,4 +1,25 @@
 <?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+
+-->
+
 <configuration scan="true" scanPeriod="5 seconds">
 
     <property resource="application.properties"></property>
diff --git a/ozhera-demo-client/ozhera-demo-client-service/pom.xml 
b/ozhera-demo-client/ozhera-demo-client-service/pom.xml
index c0356072..4a303d44 100644
--- a/ozhera-demo-client/ozhera-demo-client-service/pom.xml
+++ b/ozhera-demo-client/ozhera-demo-client-service/pom.xml
@@ -1,4 +1,25 @@
 <?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+
+-->
+
 <project xmlns="http://maven.apache.org/POM/4.0.0";
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd";>
diff --git 
a/ozhera-demo-client/ozhera-demo-client-service/src/main/java/org/apache/ozhera/demo/client/service/DubboHealthServiceImpl.java
 
b/ozhera-demo-client/ozhera-demo-client-service/src/main/java/org/apache/ozhera/demo/client/service/DubboHealthServiceImpl.java
index a806fb62..537bcad2 100644
--- 
a/ozhera-demo-client/ozhera-demo-client-service/src/main/java/org/apache/ozhera/demo/client/service/DubboHealthServiceImpl.java
+++ 
b/ozhera-demo-client/ozhera-demo-client-service/src/main/java/org/apache/ozhera/demo/client/service/DubboHealthServiceImpl.java
@@ -1,18 +1,22 @@
 /*
- * Copyright (C) 2020 Xiaomi Corporation
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
- *  Licensed under the Apache License, Version 2.0 (the "License");
- *  you may not use this file except in compliance with the License.
- *  You may obtain a copy of the License at
+ *   http://www.apache.org/licenses/LICENSE-2.0
  *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- *  Unless required by applicable law or agreed to in writing, software
- *  distributed under the License is distributed on an "AS IS" BASIS,
- *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- *  See the License for the specific language governing permissions and
- *  limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  */
+
 package org.apache.ozhera.demo.client.service;
 
 import com.xiaomi.hera.trace.annotation.Trace;
@@ -64,4 +68,4 @@ public class DubboHealthServiceImpl implements 
DubboHealthService {
     }
 
 
-}
+}
\ No newline at end of file
diff --git a/ozhera-demo-client/pom.xml b/ozhera-demo-client/pom.xml
index a59a9dfa..b99352d3 100644
--- a/ozhera-demo-client/pom.xml
+++ b/ozhera-demo-client/pom.xml
@@ -1,4 +1,25 @@
 <?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+
+-->
+
 <project xmlns="http://maven.apache.org/POM/4.0.0";
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd";>
@@ -202,4 +223,4 @@
         </plugins>
     </build>
 
-</project>
+</project>
\ No newline at end of file
diff --git a/ozhera-demo-server/README.md b/ozhera-demo-server/README.md
index eb9cc143..c8f0140a 100644
--- a/ozhera-demo-server/README.md
+++ b/ozhera-demo-server/README.md
@@ -1,2 +1,23 @@
+<!--
+
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+
+-->
+
 # introduce
 ozhera-demo-server
\ No newline at end of file
diff --git a/ozhera-demo-server/README_cn.md b/ozhera-demo-server/README_cn.md
index 0b6c5a9f..b24dfd11 100644
--- a/ozhera-demo-server/README_cn.md
+++ b/ozhera-demo-server/README_cn.md
@@ -1,2 +1,23 @@
+<!--
+
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+
+-->
+
 # 概述
 ozhera-demo-server
\ No newline at end of file
diff --git a/ozhera-demo-server/ozhera-demo-server-api/pom.xml 
b/ozhera-demo-server/ozhera-demo-server-api/pom.xml
index 98433d73..9e652c8c 100644
--- a/ozhera-demo-server/ozhera-demo-server-api/pom.xml
+++ b/ozhera-demo-server/ozhera-demo-server-api/pom.xml
@@ -1,4 +1,25 @@
 <?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+
+-->
+
 <project xmlns="http://maven.apache.org/POM/4.0.0";
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd";>
diff --git 
a/ozhera-demo-server/ozhera-demo-server-api/src/main/java/org/apache/ozhera/demo/server/service/DubboHealthService.java
 
b/ozhera-demo-server/ozhera-demo-server-api/src/main/java/org/apache/ozhera/demo/server/service/DubboHealthService.java
index 55447fec..d7e58112 100644
--- 
a/ozhera-demo-server/ozhera-demo-server-api/src/main/java/org/apache/ozhera/demo/server/service/DubboHealthService.java
+++ 
b/ozhera-demo-server/ozhera-demo-server-api/src/main/java/org/apache/ozhera/demo/server/service/DubboHealthService.java
@@ -1,18 +1,22 @@
 /*
- * Copyright (C) 2020 Xiaomi Corporation
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
- *  Licensed under the Apache License, Version 2.0 (the "License");
- *  you may not use this file except in compliance with the License.
- *  You may obtain a copy of the License at
+ *   http://www.apache.org/licenses/LICENSE-2.0
  *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- *  Unless required by applicable law or agreed to in writing, software
- *  distributed under the License is distributed on an "AS IS" BASIS,
- *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- *  See the License for the specific language governing permissions and
- *  limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  */
+
 package org.apache.ozhera.demo.server.service;
 
 
diff --git a/ozhera-demo-server/ozhera-demo-server-server/pom.xml 
b/ozhera-demo-server/ozhera-demo-server-server/pom.xml
index 77cf13f8..808b0c74 100644
--- a/ozhera-demo-server/ozhera-demo-server-server/pom.xml
+++ b/ozhera-demo-server/ozhera-demo-server-server/pom.xml
@@ -1,4 +1,25 @@
 <?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+
+-->
+
 <project xmlns="http://maven.apache.org/POM/4.0.0";
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd";>
diff --git 
a/ozhera-demo-server/ozhera-demo-server-server/src/main/java/org/apache/ozhera/demo/server/HeraDemoServerBootstrap.java
 
b/ozhera-demo-server/ozhera-demo-server-server/src/main/java/org/apache/ozhera/demo/server/HeraDemoServerBootstrap.java
index 47215872..ae53a837 100644
--- 
a/ozhera-demo-server/ozhera-demo-server-server/src/main/java/org/apache/ozhera/demo/server/HeraDemoServerBootstrap.java
+++ 
b/ozhera-demo-server/ozhera-demo-server-server/src/main/java/org/apache/ozhera/demo/server/HeraDemoServerBootstrap.java
@@ -1,18 +1,22 @@
 /*
- * Copyright (C) 2020 Xiaomi Corporation
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
- *  Licensed under the Apache License, Version 2.0 (the "License");
- *  you may not use this file except in compliance with the License.
- *  You may obtain a copy of the License at
+ *   http://www.apache.org/licenses/LICENSE-2.0
  *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- *  Unless required by applicable law or agreed to in writing, software
- *  distributed under the License is distributed on an "AS IS" BASIS,
- *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- *  See the License for the specific language governing permissions and
- *  limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  */
+
 package org.apache.ozhera.demo.server;
 
 import lombok.extern.slf4j.Slf4j;
diff --git 
a/ozhera-demo-server/ozhera-demo-server-server/src/main/java/org/apache/ozhera/demo/server/config/DubboConfiguration.java
 
b/ozhera-demo-server/ozhera-demo-server-server/src/main/java/org/apache/ozhera/demo/server/config/DubboConfiguration.java
index 4d1b2f12..c04ea6e8 100644
--- 
a/ozhera-demo-server/ozhera-demo-server-server/src/main/java/org/apache/ozhera/demo/server/config/DubboConfiguration.java
+++ 
b/ozhera-demo-server/ozhera-demo-server-server/src/main/java/org/apache/ozhera/demo/server/config/DubboConfiguration.java
@@ -1,18 +1,22 @@
 /*
- * Copyright (C) 2020 Xiaomi Corporation
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
- *  Licensed under the Apache License, Version 2.0 (the "License");
- *  you may not use this file except in compliance with the License.
- *  You may obtain a copy of the License at
+ *   http://www.apache.org/licenses/LICENSE-2.0
  *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- *  Unless required by applicable law or agreed to in writing, software
- *  distributed under the License is distributed on an "AS IS" BASIS,
- *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- *  See the License for the specific language governing permissions and
- *  limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  */
+
 package org.apache.ozhera.demo.server.config;
 
 import org.apache.dubbo.config.ApplicationConfig;
diff --git 
a/ozhera-demo-server/ozhera-demo-server-server/src/main/java/org/apache/ozhera/demo/server/config/NacosConfiguration.java
 
b/ozhera-demo-server/ozhera-demo-server-server/src/main/java/org/apache/ozhera/demo/server/config/NacosConfiguration.java
index 4b4db136..fbd1f12e 100644
--- 
a/ozhera-demo-server/ozhera-demo-server-server/src/main/java/org/apache/ozhera/demo/server/config/NacosConfiguration.java
+++ 
b/ozhera-demo-server/ozhera-demo-server-server/src/main/java/org/apache/ozhera/demo/server/config/NacosConfiguration.java
@@ -1,18 +1,22 @@
 /*
- * Copyright (C) 2020 Xiaomi Corporation
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
- *  Licensed under the Apache License, Version 2.0 (the "License");
- *  you may not use this file except in compliance with the License.
- *  You may obtain a copy of the License at
+ *   http://www.apache.org/licenses/LICENSE-2.0
  *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- *  Unless required by applicable law or agreed to in writing, software
- *  distributed under the License is distributed on an "AS IS" BASIS,
- *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- *  See the License for the specific language governing permissions and
- *  limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  */
+
 package org.apache.ozhera.demo.server.config;
 
 import com.alibaba.nacos.api.annotation.NacosProperties;
diff --git 
a/ozhera-demo-server/ozhera-demo-server-server/src/main/java/org/apache/ozhera/demo/server/grpc/MyServiceImpl.java
 
b/ozhera-demo-server/ozhera-demo-server-server/src/main/java/org/apache/ozhera/demo/server/grpc/MyServiceImpl.java
index b2013dc9..bd244d07 100644
--- 
a/ozhera-demo-server/ozhera-demo-server-server/src/main/java/org/apache/ozhera/demo/server/grpc/MyServiceImpl.java
+++ 
b/ozhera-demo-server/ozhera-demo-server-server/src/main/java/org/apache/ozhera/demo/server/grpc/MyServiceImpl.java
@@ -1,64 +1,19 @@
-///*
-// * Copyright (C) 2020 Xiaomi Corporation
-// *
-// *  Licensed under the Apache License, Version 2.0 (the "License");
-// *  you may not use this file except in compliance with the License.
-// *  You may obtain a copy of the License at
-// *
-// *      http://www.apache.org/licenses/LICENSE-2.0
-// *
-// *  Unless required by applicable law or agreed to in writing, software
-// *  distributed under the License is distributed on an "AS IS" BASIS,
-// *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// *  See the License for the specific language governing permissions and
-// *  limitations under the License.
-// */
-//package com.xiaomi.mone.hera.demo.server.grpc;
-//
-//import io.grpc.stub.StreamObserver;
-//import net.devh.boot.grpc.server.service.GrpcService;
-//import com.xiaomi.mone.hera.demo.grpc.HelloRequest;
-//import com.xiaomi.mone.hera.demo.grpc.MyServiceGrpc;
-//import com.xiaomi.mone.hera.demo.grpc.HelloReply;
-//
-//import java.util.concurrent.TimeUnit;
-//
-//@GrpcService
-//public class MyServiceImpl extends MyServiceGrpc.MyServiceImplBase {
-//
-//    @Override
-//    public void normal(HelloRequest request, StreamObserver<HelloReply> 
responseObserver) {
-//        HelloReply reply = HelloReply.newBuilder()
-//                .setMessage("Hello ==> " + request.getName())
-//                .build();
-//        responseObserver.onNext(reply);
-//        responseObserver.onCompleted();
-//    }
-//
-//    @Override
-//    public void slow(HelloRequest request, StreamObserver<HelloReply> 
responseObserver) {
-//        HelloReply reply = HelloReply.newBuilder()
-//                .setMessage("Hello ==> " + request.getName())
-//                .build();
-//        try {
-//            TimeUnit.SECONDS.sleep(1);
-//        }catch (Throwable t){
-//
-//        }
-//        responseObserver.onNext(reply);
-//        responseObserver.onCompleted();
-//    }
-//
-//    @Override
-//    public void error(HelloRequest request, StreamObserver<HelloReply> 
responseObserver) {
-//        HelloReply reply = HelloReply.newBuilder()
-//                .setMessage("Hello ==> " + request.getName())
-//                .build();
-//        if(true) {
-//            throw new RuntimeException("error");
-//        }
-//        responseObserver.onNext(reply);
-//        responseObserver.onCompleted();
-//    }
-//
-//}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
diff --git 
a/ozhera-demo-server/ozhera-demo-server-server/src/main/java/org/apache/ozhera/demo/server/service/DubboHealthServiceImpl.java
 
b/ozhera-demo-server/ozhera-demo-server-server/src/main/java/org/apache/ozhera/demo/server/service/DubboHealthServiceImpl.java
index 693c13e1..df51c5c5 100644
--- 
a/ozhera-demo-server/ozhera-demo-server-server/src/main/java/org/apache/ozhera/demo/server/service/DubboHealthServiceImpl.java
+++ 
b/ozhera-demo-server/ozhera-demo-server-server/src/main/java/org/apache/ozhera/demo/server/service/DubboHealthServiceImpl.java
@@ -1,18 +1,22 @@
 /*
- * Copyright (C) 2020 Xiaomi Corporation
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
- *  Licensed under the Apache License, Version 2.0 (the "License");
- *  you may not use this file except in compliance with the License.
- *  You may obtain a copy of the License at
+ *   http://www.apache.org/licenses/LICENSE-2.0
  *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- *  Unless required by applicable law or agreed to in writing, software
- *  distributed under the License is distributed on an "AS IS" BASIS,
- *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- *  See the License for the specific language governing permissions and
- *  limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  */
+
 package org.apache.ozhera.demo.server.service;
 
 import org.apache.dubbo.config.annotation.Service;
diff --git 
a/ozhera-demo-server/ozhera-demo-server-server/src/main/resources/application.properties
 
b/ozhera-demo-server/ozhera-demo-server-server/src/main/resources/application.properties
index c8e4edfb..93331ad9 100644
--- 
a/ozhera-demo-server/ozhera-demo-server-server/src/main/resources/application.properties
+++ 
b/ozhera-demo-server/ozhera-demo-server-server/src/main/resources/application.properties
@@ -1,3 +1,18 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
 spring.application.name=hera-demo-server
 server.port=${server.port}
 server.type=${server.type}
diff --git 
a/ozhera-demo-server/ozhera-demo-server-server/src/main/resources/config/open-source.properties
 
b/ozhera-demo-server/ozhera-demo-server-server/src/main/resources/config/open-source.properties
index a5443ab8..87082db2 100644
--- 
a/ozhera-demo-server/ozhera-demo-server-server/src/main/resources/config/open-source.properties
+++ 
b/ozhera-demo-server/ozhera-demo-server-server/src/main/resources/config/open-source.properties
@@ -1,3 +1,18 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
 spring.application.name=hera-demo-server
 server.port=9995
 server.type=dev
diff --git 
a/ozhera-demo-server/ozhera-demo-server-server/src/main/resources/logback.xml 
b/ozhera-demo-server/ozhera-demo-server-server/src/main/resources/logback.xml
index 156895ab..5d842ade 100644
--- 
a/ozhera-demo-server/ozhera-demo-server-server/src/main/resources/logback.xml
+++ 
b/ozhera-demo-server/ozhera-demo-server-server/src/main/resources/logback.xml
@@ -1,4 +1,25 @@
 <?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+
+-->
+
 <configuration scan="true" scanPeriod="5 seconds">
 
     <property resource="application.properties"></property>
diff --git a/ozhera-demo-server/pom.xml b/ozhera-demo-server/pom.xml
index ed1e5d03..5c3b39f0 100644
--- a/ozhera-demo-server/pom.xml
+++ b/ozhera-demo-server/pom.xml
@@ -1,4 +1,25 @@
 <?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+
+-->
+
 <project xmlns="http://maven.apache.org/POM/4.0.0";
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd";>
@@ -161,4 +182,4 @@
 
         </plugins>
     </build>
-</project>
+</project>
\ No newline at end of file


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to