diff --git a/pom.xml b/pom.xml index 7017787..9f89c20 100644 --- a/pom.xml +++ b/pom.xml @@ -12,11 +12,11 @@ cn.ecpark.service usergw-parent - 0.0.1-SNAPSHOT + 0.1.0-RELEASE usergw-parent pom Demo project for Yame User Gateway - + 1.8 UTF-8 diff --git a/usergw-api/pom.xml b/usergw-api/pom.xml index 1302965..40f4d0b 100644 --- a/usergw-api/pom.xml +++ b/usergw-api/pom.xml @@ -5,13 +5,13 @@ cn.ecpark.service usergw-parent - 0.0.1-SNAPSHOT + 0.1.0-RELEASE ../pom.xml cn.ecpark.service usergw-api - ${project.parent.version} + 0.1.0-RELEASE jar demo-api diff --git a/usergw-service/pom.xml b/usergw-service/pom.xml index 83b8ba4..02ac82a 100644 --- a/usergw-service/pom.xml +++ b/usergw-service/pom.xml @@ -5,13 +5,13 @@ cn.ecpark.service usergw-parent - 0.0.1-SNAPSHOT + 0.1.0-RELEASE ../pom.xml cn.ecpark.service usergw - ${project.parent.version} + 0.1.0-RELEASE demo Demo project for Gateway Service @@ -120,4 +120,4 @@ - \ No newline at end of file + diff --git a/usergw-service/src/main/java/META-INF/additional-spring-configuration-metadata.json b/usergw-service/src/main/java/META-INF/additional-spring-configuration-metadata.json index cada07b..59ed6c5 100644 --- a/usergw-service/src/main/java/META-INF/additional-spring-configuration-metadata.json +++ b/usergw-service/src/main/java/META-INF/additional-spring-configuration-metadata.json @@ -1,5 +1,5 @@ {"properties": [{ "name": "yame.config", "type": "java.lang.String", - "description": "用于配置网关的路径, 如果不填默认 gateway.yml, gateway.yaml, Gateway.yml, Gateway.yaml" + "description": "用于配置网关的路径, 如果不填.默认: gateway.yml, gateway.yaml, Gateway.yml, Gateway.yaml" }]} \ No newline at end of file diff --git a/usergw-service/src/main/resources/test-gateway.yaml b/usergw-service/src/main/resources/test-gateway.yaml index 2e900a4..6ee7e1b 100644 --- a/usergw-service/src/main/resources/test-gateway.yaml +++ b/usergw-service/src/main/resources/test-gateway.yaml @@ -10,25 +10,6 @@ restful: - Path=/get - Header=XX, \d+ - - id: path_route12; - uri: http://httpbin.org:80/* - order: 9 - predicates: - - Path=/get - - Header=XX, \d+ - - - id: path_route13 - uri: http://httpbin.org:80/* - order: 9 - predicates: - - Path=/get - - Header=XX, \d+ - # - id: redirect_to - # uri: http://localhost/test/** - # order: 11 - # filters: - # - RedirectTo=302, http://httpbin.org:80/get - dubbo: routes: - id: test @@ -49,4 +30,22 @@ dubbo: predicates: - Path=/dubbo/hello + - id: test2 + order: 0 + application: dubbo-exchange + # methods: # 如果没填就从 request拿 意味着所有接口都可以使用 + + # - name: Say + # param-types: + # - java.lang.String + # - name: Hello + + connections: 4 + group: test + # registry: zookeeper://127.0.0.1:2181 + interface: ocean.demo.api.IExchange + version: 1.0.0 + predicates: + - Path=/dubbo/hello + \ No newline at end of file