You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2019/06/05 04:22:42 UTC

[GitHub] [servicecomb-java-chassis] sxcooler commented on issue #1236: GET /v4/default/registry/instances ... Connection was closed

sxcooler commented on issue #1236: GET /v4/default/registry/instances ... Connection was closed
URL: https://github.com/apache/servicecomb-java-chassis/issues/1236#issuecomment-498933191
 
 
   Here is my pom:
   ```
   <?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">
       <modelVersion>4.0.0</modelVersion>
   
       <parent>
           <groupId>com.baolongxing.loan</groupId>
           <artifactId>lai2-parent</artifactId>
           <version>1.0-SNAPSHOT</version>
           <relativePath/>
       </parent>
   
       <artifactId>lai2-gateway</artifactId>
       <version>1.0-SNAPSHOT</version>
   
       <properties>
           <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
       </properties>
   
       <dependencies>
           <dependency>
               <groupId>org.springframework.boot</groupId>
               <artifactId>spring-boot-starter</artifactId>
           </dependency>
           <dependency>
               <groupId>org.apache.servicecomb</groupId>
               <artifactId>spring-boot-starter-servicecomb</artifactId>
           </dependency>
           <dependency>
               <groupId>org.springframework.cloud</groupId>
               <artifactId>spring-cloud-starter-zuul</artifactId>
           </dependency>
           <dependency>
               <groupId>org.springframework.cloud</groupId>
               <artifactId>spring-cloud-starter-ribbon</artifactId>
               <exclusions>
                   <exclusion>
                       <artifactId>jsr311-api</artifactId>
                       <groupId>javax.ws.rs</groupId>
                   </exclusion>
               </exclusions>
           </dependency>
           <dependency>
               <groupId>org.springframework.cloud</groupId>
               <artifactId>spring-cloud-starter-hystrix</artifactId>
           </dependency>
           <dependency>
               <groupId>org.apache.servicecomb</groupId>
               <artifactId>spring-boot-starter-discovery</artifactId>
           </dependency>
           <dependency>
               <groupId>org.apache.servicecomb</groupId>
               <artifactId>transport-rest-vertx</artifactId>
           </dependency>
           <dependency>
               <groupId>com.baolongxing.loan.common</groupId>
               <artifactId>loan-common</artifactId>
               <version>1.0-SNAPSHOT</version>
           </dependency>
           <dependency>
               <groupId>org.projectlombok</groupId>
               <artifactId>lombok</artifactId>
               <optional>true</optional>
           </dependency>
       </dependencies>
   
       <!--for package and deploy-->
       <build>
           <finalName>lai2-gateway</finalName>
           <plugins>
               <plugin>
                   <groupId>org.springframework.boot</groupId>
                   <artifactId>spring-boot-maven-plugin</artifactId>
                   <executions>
                       <execution>
                           <goals>
                               <goal>repackage</goal>
                           </goals>
                       </execution>
                   </executions>
               </plugin>
   
               <plugin>
                   <groupId>org.apache.maven.plugins</groupId>
                   <artifactId>maven-jar-plugin</artifactId>
                   <version>2.6</version>
                   <configuration>
                       <archive>
                           <manifestEntries>
                               <Class-Path>.</Class-Path>
                           </manifestEntries>
                       </archive>
                   </configuration>
               </plugin>
   
               <plugin>
                   <groupId>org.apache.maven.plugins</groupId>
                   <artifactId>maven-compiler-plugin</artifactId>
                   <configuration>
                       <source>8</source>
                       <target>8</target>
                   </configuration>
               </plugin>
           </plugins>
       </build>
   </project>
   ```
   
   And this is my microservice.yaml in production:
   ```
   #More details can be found :
   # 1.http://servicecomb.apache.org/users/service-definition/
   # 2.http://servicecomb.apache.org/users/service-configurations/
   # 3.http://servicecomb.apache.org/users/communicate-protocol/
   
   #Indicates an application name
   APPLICATION_ID: zhaohui
   service_description:
     #Indicates a microservice name
     #The microservice name should be unique within an application.
     #The name can contain digits, uppercase and lowercase letters, hyphens(-), underscores(_), and periods(.); and can neither start nor end with punctuations.
     #The naming rule is as follows: ^[a-zA-Z0-9]+$|^[a-zA-Z0-9][a-zA-Z0-9_-.]*[a-zA-Z0-9]$.
     name: lai2-gateway
     #Indicates a service version
     version: 1.0.0
     environment: production
   servicecomb:
     service:
       #Specifies the service center IP address.
       registry:
         address: http://service-center:30100
     #Specifies the rest transport listening IP address.
   #  rest:
   #    address: 0.0.0.0:8080
   #  #Specifies the highway transport listening IP address.
   #  highway:
   #    address: 0.0.0.0:7070
     request:
       timeout: 30000
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services