You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@griffin.apache.org by gu...@apache.org on 2017/03/03 08:41:23 UTC
[49/50] [abbrv] incubator-griffin git commit: code refactor
code refactor
Project: http://git-wip-us.apache.org/repos/asf/incubator-griffin/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-griffin/commit/0a07109c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-griffin/tree/0a07109c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-griffin/diff/0a07109c
Branch: refs/heads/master
Commit: 0a07109c4ba066ad1d04ea0f5d91f585170d246b
Parents: 59924c0
Author: Guo <gu...@gmail.com>
Authored: Fri Mar 3 10:30:04 2017 +0800
Committer: Guo <gu...@gmail.com>
Committed: Fri Mar 3 10:30:04 2017 +0800
----------------------------------------------------------------------
service/pom.xml | 12 ++++++------
.../griffin/core/metastore/KafkaSchemaService.java | 4 +++-
2 files changed, 9 insertions(+), 7 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-griffin/blob/0a07109c/service/pom.xml
----------------------------------------------------------------------
diff --git a/service/pom.xml b/service/pom.xml
index ed582e1..3e432da 100644
--- a/service/pom.xml
+++ b/service/pom.xml
@@ -19,12 +19,12 @@
<confluent.version>3.2.0</confluent.version>
</properties>
- <!--<repositories>-->
- <!--<repository>-->
- <!--<id>confluent</id>-->
- <!--<url>http://packages.confluent.io/maven/</url>-->
- <!--</repository>-->
- <!--</repositories>-->
+ <repositories>
+ <repository>
+ <id>confluent</id>
+ <url>http://packages.confluent.io/maven/</url>
+ </repository>
+ </repositories>
<dependencyManagement>
http://git-wip-us.apache.org/repos/asf/incubator-griffin/blob/0a07109c/service/src/main/java/org/apache/griffin/core/metastore/KafkaSchemaService.java
----------------------------------------------------------------------
diff --git a/service/src/main/java/org/apache/griffin/core/metastore/KafkaSchemaService.java b/service/src/main/java/org/apache/griffin/core/metastore/KafkaSchemaService.java
index cbaaa1b..2113312 100644
--- a/service/src/main/java/org/apache/griffin/core/metastore/KafkaSchemaService.java
+++ b/service/src/main/java/org/apache/griffin/core/metastore/KafkaSchemaService.java
@@ -5,6 +5,7 @@ import io.confluent.kafka.schemaregistry.client.rest.entities.Schema;
import io.confluent.kafka.schemaregistry.client.rest.entities.SchemaString;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
+import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Service;
@@ -21,11 +22,12 @@ public class KafkaSchemaService {
@Value("${kafka.schema.registry.url}")
private String url;
+
private String registryUrl(final String path) {
if (StringUtils.hasText(path)) {
String usePath = path;
if (!path.startsWith("/")) usePath = "/" + path;
- return url + usePath;
+ return this.url + usePath;
}
return "";
}