apache / servicecomb-java-chassis

ServiceComb Java Chassis is a Software Development Kit (SDK) for rapid development of microservices in Java, providing service registration, service discovery, dynamic routing, and service management features
Apache License 2.0
1.91k stars 810 forks source link

隐式契约RestSchema返回非字符串时运行报错 #1059

Closed sxcooler closed 5 years ago

sxcooler commented 5 years ago

我基于java-chassis 1.10 的springboot archetype建立了一个demo项目,修改HelloImpl的时候遇到当返回值是String的时候正常,返回List<某实体>或某实体时则报错。 我的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">
  <groupId>com.baolongxing.loan</groupId>
  <artifactId>demo</artifactId>
  <version>1.0-SNAPSHOT</version>
  <modelVersion>4.0.0</modelVersion>

  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <java-chassis.version>1.1.0</java-chassis.version>
    <springboot.version>1.5.12.RELEASE</springboot.version>
  </properties>

  <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>org.apache.servicecomb</groupId>
        <artifactId>java-chassis-dependencies</artifactId>
        <version>${java-chassis.version}</version>
        <type>pom</type>
        <scope>import</scope>
      </dependency>
    </dependencies>
  </dependencyManagement>

  <dependencies>
    <dependency>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-starter</artifactId>
    </dependency>
    <dependency>
      <groupId>org.apache.servicecomb</groupId>
      <artifactId>spring-boot-starter-provider</artifactId>
    </dependency>
    <dependency>
      <groupId>org.hibernate</groupId>
      <artifactId>hibernate-validator</artifactId>
    </dependency>
    <dependency>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-starter-cache</artifactId>
    </dependency>
    <dependency>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-starter-data-mongodb</artifactId>
    </dependency>
    <dependency>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-starter-data-redis</artifactId>
    </dependency>
    <dependency>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-starter-freemarker</artifactId>
    </dependency>
    <dependency>
      <groupId>com.baomidou</groupId>
      <artifactId>mybatis-plus-boot-starter</artifactId>
      <version>3.0.7.1</version>
    </dependency>
    <dependency>
      <groupId>com.zaxxer</groupId>
      <artifactId>HikariCP</artifactId>
      <version>3.3.0</version>
    </dependency>

    <dependency>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-devtools</artifactId>
      <scope>runtime</scope>
    </dependency>
    <dependency>
      <groupId>mysql</groupId>
      <artifactId>mysql-connector-java</artifactId>
      <scope>runtime</scope>
    </dependency>
    <dependency>
      <groupId>org.projectlombok</groupId>
      <artifactId>lombok</artifactId>
      <optional>true</optional>
    </dependency>
    <dependency>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-starter-test</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>redis.clients</groupId>
      <artifactId>jedis</artifactId>
      <version>2.10.1</version>
    </dependency>
    <dependency>
      <groupId>com.alibaba</groupId>
      <artifactId>fastjson</artifactId>
      <version>1.2.54</version>
    </dependency>
  </dependencies>

  <!--for package and deploy-->
  <build>
    <plugins>
      <plugin>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-maven-plugin</artifactId>
        <version>${springboot.version}</version>
        <executions>
          <execution>
            <goals>
              <goal>repackage</goal>
            </goals>
            <configuration>
              <outputDirectory>${project.build.directory}/bin</outputDirectory>
              <classifier>exec</classifier>
            </configuration>
          </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>
    </plugins>
  </build>
</project>

我的HelloImpl.java

package com.baolongxing.loan;

import com.alibaba.fastjson.JSON;
import com.baolongxing.loan.mapper.BcSysParamMapper;
import com.baolongxing.loan.model.BcSysParam;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.apache.servicecomb.provider.rest.common.RestSchema;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@RestSchema(schemaId = "hello")
@RequestMapping(path = "/")
public class HelloImpl {
    @Autowired
    private BcSysParamMapper bcSysParamMapper;

    @GetMapping(path = "/hello")
    public String hello() {

        List<BcSysParam> paramList = bcSysParamMapper.selectList(
                new QueryWrapper<BcSysParam>()
                        .orderByDesc("id")
                        .last("limit 5")
        );
        String tmp = JSON.toJSONString(paramList);
        System.out.println(tmp);
        return tmp;
    }
}

这样的时候是正常的,但如果改成

@GetMapping(path = "/hello")
    public List<BcSysParam> hello() {

        List<BcSysParam> paramList = bcSysParamMapper.selectList(
                new QueryWrapper<BcSysParam>()
                        .orderByDesc("id")
                        .last("limit 5")
        );
        String tmp = JSON.toJSONString(paramList);
        System.out.println(tmp);
        return paramList;
    }

就会报错:

/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/bin/java -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:53412,suspend=y,server=n -XX:TieredStopAtLevel=1 -noverify -Dspring.output.ansi.enabled=always -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=53411 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Djava.rmi.server.hostname=127.0.0.1 -Dspring.liveBeansView.mbeanDomain -Dspring.application.admin.enabled=true -javaagent:/Users/sxc/Library/Caches/IntelliJIdea2018.3/captureAgent/debugger-agent.jar -Dfile.encoding=UTF-8 -classpath "/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/jre/lib/charsets.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/jre/lib/deploy.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/jre/lib/ext/cldrdata.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/jre/lib/ext/dnsns.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/jre/lib/ext/jaccess.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/jre/lib/ext/jfxrt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/jre/lib/ext/localedata.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/jre/lib/ext/nashorn.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/jre/lib/ext/sunec.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/jre/lib/ext/sunjce_provider.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/jre/lib/ext/sunpkcs11.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/jre/lib/ext/zipfs.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/jre/lib/javaws.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/jre/lib/jce.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/jre/lib/jfr.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/jre/lib/jfxswt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/jre/lib/jsse.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/jre/lib/management-agent.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/jre/lib/plugin.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/jre/lib/resources.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/jre/lib/rt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/lib/ant-javafx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/lib/dt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/lib/javafx-mx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/lib/jconsole.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/lib/packager.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/lib/sa-jdi.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/lib/tools.jar:/Users/sxc/work/demo/target/classes:/Users/sxc/.m2/repository/org/springframework/boot/spring-boot-starter/1.5.12.RELEASE/spring-boot-starter-1.5.12.RELEASE.jar:/Users/sxc/.m2/repository/org/springframework/boot/spring-boot/1.5.12.RELEASE/spring-boot-1.5.12.RELEASE.jar:/Users/sxc/.m2/repository/org/springframework/boot/spring-boot-autoconfigure/1.5.12.RELEASE/spring-boot-autoconfigure-1.5.12.RELEASE.jar:/Users/sxc/.m2/repository/org/springframework/boot/spring-boot-starter-logging/1.5.12.RELEASE/spring-boot-starter-logging-1.5.12.RELEASE.jar:/Users/sxc/.m2/repository/ch/qos/logback/logback-classic/1.1.7/logback-classic-1.1.7.jar:/Users/sxc/.m2/repository/ch/qos/logback/logback-core/1.1.7/logback-core-1.1.7.jar:/Users/sxc/.m2/repository/org/slf4j/jcl-over-slf4j/1.7.25/jcl-over-slf4j-1.7.25.jar:/Users/sxc/.m2/repository/org/slf4j/jul-to-slf4j/1.7.25/jul-to-slf4j-1.7.25.jar:/Users/sxc/.m2/repository/org/slf4j/log4j-over-slf4j/1.7.7/log4j-over-slf4j-1.7.7.jar:/Users/sxc/.m2/repository/org/springframework/spring-core/4.3.16.RELEASE/spring-core-4.3.16.RELEASE.jar:/Users/sxc/.m2/repository/org/yaml/snakeyaml/1.16/snakeyaml-1.16.jar:/Users/sxc/.m2/repository/org/apache/servicecomb/spring-boot-starter-provider/1.1.0/spring-boot-starter-provider-1.1.0.jar:/Users/sxc/.m2/repository/org/apache/servicecomb/spring-boot-starter-servicecomb/1.1.0/spring-boot-starter-servicecomb-1.1.0.jar:/Users/sxc/.m2/repository/org/apache/tomcat/embed/tomcat-embed-logging-juli/8.0.33/tomcat-embed-logging-juli-8.0.33.jar:/Users/sxc/.m2/repository/org/apache/servicecomb/provider-springmvc/1.1.0/provider-springmvc-1.1.0.jar:/Users/sxc/.m2/repository/org/apache/servicecomb/provider-rest-common/1.1.0/provider-rest-common-1.1.0.jar:/Users/sxc/.m2/repository/org/apache/servicecomb/swagger-invocation-springmvc/1.1.0/swagger-invocation-springmvc-1.1.0.jar:/Users/sxc/.m2/repository/org/apache/servicecomb/swagger-invocation-core/1.1.0/swagger-invocation-core-1.1.0.jar:/Users/sxc/.m2/repository/org/apache/servicecomb/swagger-generator-springmvc/1.1.0/swagger-generator-springmvc-1.1.0.jar:/Users/sxc/.m2/repository/org/apache/servicecomb/swagger-generator-core/1.1.0/swagger-generator-core-1.1.0.jar:/Users/sxc/.m2/repository/io/swagger/swagger-core/1.5.12/swagger-core-1.5.12.jar:/Users/sxc/.m2/repository/com/fasterxml/jackson/dataformat/jackson-dataformat-yaml/2.9.6/jackson-dataformat-yaml-2.9.6.jar:/Users/sxc/.m2/repository/io/swagger/swagger-models/1.5.12/swagger-models-1.5.12.jar:/Users/sxc/.m2/repository/io/swagger/swagger-annotations/1.5.12/swagger-annotations-1.5.12.jar:/Users/sxc/.m2/repository/org/apache/servicecomb/provider-jaxrs/1.1.0/provider-jaxrs-1.1.0.jar:/Users/sxc/.m2/repository/org/apache/servicecomb/swagger-invocation-jaxrs/1.1.0/swagger-invocation-jaxrs-1.1.0.jar:/Users/sxc/.m2/repository/org/apache/servicecomb/swagger-generator-jaxrs/1.1.0/swagger-generator-jaxrs-1.1.0.jar:/Users/sxc/.m2/repository/org/apache/servicecomb/provider-pojo/1.1.0/provider-pojo-1.1.0.jar:/Users/sxc/.m2/repository/org/apache/servicecomb/java-chassis-core/1.1.0/java-chassis-core-1.1.0.jar:/Users/sxc/.m2/repository/org/apache/servicecomb/service-registry/1.1.0/service-registry-1.1.0.jar:/Users/sxc/.m2/repository/org/apache/servicecomb/foundation-config/1.1.0/foundation-config-1.1.0.jar:/Users/sxc/.m2/repository/io/netty/netty-codec/4.1.24.Final/netty-codec-4.1.24.Final.jar:/Users/sxc/.m2/repository/io/netty/netty-codec-socks/4.1.24.Final/netty-codec-socks-4.1.24.Final.jar:/Users/sxc/.m2/repository/org/apache/commons/commons-lang3/3.6/commons-lang3-3.6.jar:/Users/sxc/.m2/repository/io/zipkin/brave/brave/4.13.1/brave-4.13.1.jar:/Users/sxc/.m2/repository/io/zipkin/zipkin2/zipkin/2.4.2/zipkin-2.4.2.jar:/Users/sxc/.m2/repository/io/zipkin/reporter2/zipkin-reporter/2.5.0/zipkin-reporter-2.5.0.jar:/Users/sxc/.m2/repository/org/apache/servicecomb/handler-bizkeeper/1.1.0/handler-bizkeeper-1.1.0.jar:/Users/sxc/.m2/repository/com/netflix/hystrix/hystrix-core/1.5.10/hystrix-core-1.5.10.jar:/Users/sxc/.m2/repository/org/hdrhistogram/HdrHistogram/2.1.9/HdrHistogram-2.1.9.jar:/Users/sxc/.m2/repository/org/apache/servicecomb/foundation-metrics/1.1.0/foundation-metrics-1.1.0.jar:/Users/sxc/.m2/repository/org/apache/servicecomb/foundation-common/1.1.0/foundation-common-1.1.0.jar:/Users/sxc/.m2/repository/com/fasterxml/jackson/dataformat/jackson-dataformat-xml/2.9.6/jackson-dataformat-xml-2.9.6.jar:/Users/sxc/.m2/repository/com/fasterxml/jackson/module/jackson-module-jaxb-annotations/2.8.11/jackson-module-jaxb-annotations-2.8.11.jar:/Users/sxc/.m2/repository/org/codehaus/woodstox/stax2-api/3.1.4/stax2-api-3.1.4.jar:/Users/sxc/.m2/repository/com/fasterxml/woodstox/woodstox-core/5.0.3/woodstox-core-5.0.3.jar:/Users/sxc/.m2/repository/log4j/log4j/1.2.17/log4j-1.2.17.jar:/Users/sxc/.m2/repository/org/apache/httpcomponents/httpclient/4.5.2/httpclient-4.5.2.jar:/Users/sxc/.m2/repository/org/apache/httpcomponents/httpcore/4.4.9/httpcore-4.4.9.jar:/Users/sxc/.m2/repository/commons-codec/commons-codec/1.10/commons-codec-1.10.jar:/Users/sxc/.m2/repository/javax/ws/rs/javax.ws.rs-api/2.0.1/javax.ws.rs-api-2.0.1.jar:/Users/sxc/.m2/repository/commons-io/commons-io/2.4/commons-io-2.4.jar:/Users/sxc/.m2/repository/com/netflix/spectator/spectator-reg-servo/0.71.0/spectator-reg-servo-0.71.0.jar:/Users/sxc/.m2/repository/com/netflix/spectator/spectator-api/0.71.0/spectator-api-0.71.0.jar:/Users/sxc/.m2/repository/org/apache/servicecomb/handler-loadbalance/1.1.0/handler-loadbalance-1.1.0.jar:/Users/sxc/.m2/repository/com/netflix/ribbon/ribbon/2.2.2/ribbon-2.2.2.jar:/Users/sxc/.m2/repository/com/netflix/ribbon/ribbon-transport/2.2.2/ribbon-transport-2.2.2.jar:/Users/sxc/.m2/repository/io/reactivex/rxnetty-contexts/0.4.9/rxnetty-contexts-0.4.9.jar:/Users/sxc/.m2/repository/io/reactivex/rxnetty-servo/0.4.9/rxnetty-servo-0.4.9.jar:/Users/sxc/.m2/repository/io/reactivex/rxnetty/0.4.9/rxnetty-0.4.9.jar:/Users/sxc/.m2/repository/commons-configuration/commons-configuration/1.10/commons-configuration-1.10.jar:/Users/sxc/.m2/repository/commons-logging/commons-logging/1.2/commons-logging-1.2.jar:/Users/sxc/.m2/repository/com/google/guava/guava/21.0/guava-21.0.jar:/Users/sxc/.m2/repository/com/netflix/ribbon/ribbon-loadbalancer/2.2.2/ribbon-loadbalancer-2.2.2.jar:/Users/sxc/.m2/repository/com/netflix/netflix-commons/netflix-statistics/0.1.1/netflix-statistics-0.1.1.jar:/Users/sxc/.m2/repository/com/netflix/servo/servo-core/0.10.1/servo-core-0.10.1.jar:/Users/sxc/.m2/repository/com/netflix/servo/servo-internal/0.10.1/servo-internal-0.10.1.jar:/Users/sxc/.m2/repository/com/netflix/netflix-commons/netflix-commons-util/0.1.1/netflix-commons-util-0.1.1.jar:/Users/sxc/.m2/repository/com/netflix/ribbon/ribbon-core/2.2.2/ribbon-core-2.2.2.jar:/Users/sxc/.m2/repository/com/netflix/archaius/archaius-core/0.7.3/archaius-core-0.7.3.jar:/Users/sxc/.m2/repository/com/google/code/findbugs/jsr305/3.0.1/jsr305-3.0.1.jar:/Users/sxc/.m2/repository/io/reactivex/rxjava/1.1.6/rxjava-1.1.6.jar:/Users/sxc/.m2/repository/commons-lang/commons-lang/2.6/commons-lang-2.6.jar:/Users/sxc/.m2/repository/org/apache/servicecomb/transport-highway/1.1.0/transport-highway-1.1.0.jar:/Users/sxc/.m2/repository/org/apache/servicecomb/foundation-vertx/1.1.0/foundation-vertx-1.1.0.jar:/Users/sxc/.m2/repository/io/vertx/vertx-core/3.5.3/vertx-core-3.5.3.jar:/Users/sxc/.m2/repository/io/netty/netty-common/4.1.24.Final/netty-common-4.1.24.Final.jar:/Users/sxc/.m2/repository/io/netty/netty-buffer/4.1.24.Final/netty-buffer-4.1.24.Final.jar:/Users/sxc/.m2/repository/io/netty/netty-transport/4.1.24.Final/netty-transport-4.1.24.Final.jar:/Users/sxc/.m2/repository/io/netty/netty-handler/4.1.24.Final/netty-handler-4.1.24.Final.jar:/Users/sxc/.m2/repository/io/netty/netty-handler-proxy/4.1.24.Final/netty-handler-proxy-4.1.24.Final.jar:/Users/sxc/.m2/repository/io/netty/netty-codec-http/4.1.24.Final/netty-codec-http-4.1.24.Final.jar:/Users/sxc/.m2/repository/io/netty/netty-codec-http2/4.1.24.Final/netty-codec-http2-4.1.24.Final.jar:/Users/sxc/.m2/repository/io/netty/netty-resolver/4.1.24.Final/netty-resolver-4.1.24.Final.jar:/Users/sxc/.m2/repository/io/netty/netty-resolver-dns/4.1.24.Final/netty-resolver-dns-4.1.24.Final.jar:/Users/sxc/.m2/repository/io/netty/netty-codec-dns/4.1.24.Final/netty-codec-dns-4.1.24.Final.jar:/Users/sxc/.m2/repository/io/vertx/vertx-web/3.5.3/vertx-web-3.5.3.jar:/Users/sxc/.m2/repository/io/vertx/vertx-auth-common/3.5.3/vertx-auth-common-3.5.3.jar:/Users/sxc/.m2/repository/io/vertx/vertx-bridge-common/3.5.3/vertx-bridge-common-3.5.3.jar:/Users/sxc/.m2/repository/org/apache/servicecomb/foundation-ssl/1.1.0/foundation-ssl-1.1.0.jar:/Users/sxc/.m2/repository/io/netty/netty-tcnative-boringssl-static/2.0.7.Final/netty-tcnative-boringssl-static-2.0.7.Final.jar:/Users/sxc/.m2/repository/org/apache/servicecomb/common-protobuf/1.1.0/common-protobuf-1.1.0.jar:/Users/sxc/.m2/repository/org/apache/servicecomb/common-javassist/1.1.0/common-javassist-1.1.0.jar:/Users/sxc/.m2/repository/org/javassist/javassist/3.18.1-GA/javassist-3.18.1-GA.jar:/Users/sxc/.m2/repository/org/apache/servicecomb/foundation-protobuf/1.1.0/foundation-protobuf-1.1.0.jar:/Users/sxc/.m2/repository/io/protostuff/protostuff-parser/2.2.25/protostuff-parser-2.2.25.jar:/Users/sxc/.m2/repository/org/antlr/antlr4/4.7/antlr4-4.7.jar:/Users/sxc/.m2/repository/org/antlr/antlr4-runtime/4.7/antlr4-runtime-4.7.jar:/Users/sxc/.m2/repository/org/antlr/antlr-runtime/3.5.2/antlr-runtime-3.5.2.jar:/Users/sxc/.m2/repository/org/antlr/ST4/4.0.8/ST4-4.0.8.jar:/Users/sxc/.m2/repository/org/abego/treelayout/org.abego.treelayout.core/1.0.3/org.abego.treelayout.core-1.0.3.jar:/Users/sxc/.m2/repository/org/glassfish/javax.json/1.0.4/javax.json-1.0.4.jar:/Users/sxc/.m2/repository/com/ibm/icu/icu4j/58.2/icu4j-58.2.jar:/Users/sxc/.m2/repository/com/google/inject/guice/4.1.0/guice-4.1.0.jar:/Users/sxc/.m2/repository/aopalliance/aopalliance/1.0/aopalliance-1.0.jar:/Users/sxc/.m2/repository/com/google/inject/extensions/guice-multibindings/4.1.0/guice-multibindings-4.1.0.jar:/Users/sxc/.m2/repository/com/google/inject/extensions/guice-assistedinject/4.1.0/guice-assistedinject-4.1.0.jar:/Users/sxc/.m2/repository/io/protostuff/protostuff-runtime/1.5.2/protostuff-runtime-1.5.2.jar:/Users/sxc/.m2/repository/io/protostuff/protostuff-api/1.5.2/protostuff-api-1.5.2.jar:/Users/sxc/.m2/repository/io/protostuff/protostuff-collectionschema/1.5.2/protostuff-collectionschema-1.5.2.jar:/Users/sxc/.m2/repository/io/protostuff/protostuff-core/1.5.2/protostuff-core-1.5.2.jar:/Users/sxc/.m2/repository/com/google/protobuf/protobuf-java/3.5.1/protobuf-java-3.5.1.jar:/Users/sxc/.m2/repository/org/apache/servicecomb/handler-flowcontrol-qps/1.1.0/handler-flowcontrol-qps-1.1.0.jar:/Users/sxc/.m2/repository/org/apache/servicecomb/transport-rest-vertx/1.1.0/transport-rest-vertx-1.1.0.jar:/Users/sxc/.m2/repository/org/apache/servicecomb/transport-rest-client/1.1.0/transport-rest-client-1.1.0.jar:/Users/sxc/.m2/repository/org/apache/servicecomb/common-rest/1.1.0/common-rest-1.1.0.jar:/Users/sxc/.m2/repository/javax/servlet/javax.servlet-api/3.1.0/javax.servlet-api-3.1.0.jar:/Users/sxc/.m2/repository/javax/inject/javax.inject/1/javax.inject-1.jar:/Users/sxc/.m2/repository/org/springframework/spring-aspects/4.3.16.RELEASE/spring-aspects-4.3.16.RELEASE.jar:/Users/sxc/.m2/repository/org/aspectj/aspectjweaver/1.8.8/aspectjweaver-1.8.8.jar:/Users/sxc/.m2/repository/org/hibernate/validator/hibernate-validator/6.0.2.Final/hibernate-validator-6.0.2.Final.jar:/Users/sxc/.m2/repository/javax/validation/validation-api/2.0.0.Final/validation-api-2.0.0.Final.jar:/Users/sxc/.m2/repository/org/jboss/logging/jboss-logging/3.3.2.Final/jboss-logging-3.3.2.Final.jar:/Users/sxc/.m2/repository/com/fasterxml/classmate/1.3.4/classmate-1.3.4.jar:/Users/sxc/.m2/repository/org/springframework/boot/spring-boot-starter-cache/1.5.12.RELEASE/spring-boot-starter-cache-1.5.12.RELEASE.jar:/Users/sxc/.m2/repository/org/springframework/spring-context/4.3.16.RELEASE/spring-context-4.3.16.RELEASE.jar:/Users/sxc/.m2/repository/org/springframework/spring-aop/4.3.16.RELEASE/spring-aop-4.3.16.RELEASE.jar:/Users/sxc/.m2/repository/org/springframework/spring-beans/4.3.16.RELEASE/spring-beans-4.3.16.RELEASE.jar:/Users/sxc/.m2/repository/org/springframework/spring-expression/4.3.16.RELEASE/spring-expression-4.3.16.RELEASE.jar:/Users/sxc/.m2/repository/org/springframework/spring-context-support/4.3.16.RELEASE/spring-context-support-4.3.16.RELEASE.jar:/Users/sxc/.m2/repository/org/springframework/boot/spring-boot-starter-data-mongodb/1.5.12.RELEASE/spring-boot-starter-data-mongodb-1.5.12.RELEASE.jar:/Users/sxc/.m2/repository/org/mongodb/mongodb-driver/3.4.3/mongodb-driver-3.4.3.jar:/Users/sxc/.m2/repository/org/mongodb/mongodb-driver-core/3.4.3/mongodb-driver-core-3.4.3.jar:/Users/sxc/.m2/repository/org/mongodb/bson/3.4.3/bson-3.4.3.jar:/Users/sxc/.m2/repository/org/springframework/data/spring-data-mongodb/1.10.11.RELEASE/spring-data-mongodb-1.10.11.RELEASE.jar:/Users/sxc/.m2/repository/org/springframework/spring-tx/4.3.16.RELEASE/spring-tx-4.3.16.RELEASE.jar:/Users/sxc/.m2/repository/org/springframework/data/spring-data-commons/1.13.11.RELEASE/spring-data-commons-1.13.11.RELEASE.jar:/Users/sxc/.m2/repository/org/springframework/boot/spring-boot-starter-data-redis/1.5.12.RELEASE/spring-boot-starter-data-redis-1.5.12.RELEASE.jar:/Users/sxc/.m2/repository/org/springframework/data/spring-data-redis/1.8.11.RELEASE/spring-data-redis-1.8.11.RELEASE.jar:/Users/sxc/.m2/repository/org/springframework/data/spring-data-keyvalue/1.2.11.RELEASE/spring-data-keyvalue-1.2.11.RELEASE.jar:/Users/sxc/.m2/repository/org/springframework/spring-oxm/4.3.16.RELEASE/spring-oxm-4.3.16.RELEASE.jar:/Users/sxc/.m2/repository/org/springframework/boot/spring-boot-starter-freemarker/1.5.12.RELEASE/spring-boot-starter-freemarker-1.5.12.RELEASE.jar:/Users/sxc/.m2/repository/org/springframework/boot/spring-boot-starter-web/1.5.12.RELEASE/spring-boot-starter-web-1.5.12.RELEASE.jar:/Users/sxc/.m2/repository/org/springframework/boot/spring-boot-starter-tomcat/1.5.12.RELEASE/spring-boot-starter-tomcat-1.5.12.RELEASE.jar:/Users/sxc/.m2/repository/org/apache/tomcat/embed/tomcat-embed-core/8.0.33/tomcat-embed-core-8.0.33.jar:/Users/sxc/.m2/repository/org/apache/tomcat/embed/tomcat-embed-el/8.0.33/tomcat-embed-el-8.0.33.jar:/Users/sxc/.m2/repository/org/apache/tomcat/embed/tomcat-embed-websocket/8.0.33/tomcat-embed-websocket-8.0.33.jar:/Users/sxc/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.9.6/jackson-databind-2.9.6.jar:/Users/sxc/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.9.6/jackson-annotations-2.9.6.jar:/Users/sxc/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.9.6/jackson-core-2.9.6.jar:/Users/sxc/.m2/repository/org/springframework/spring-web/4.3.16.RELEASE/spring-web-4.3.16.RELEASE.jar:/Users/sxc/.m2/repository/org/springframework/spring-webmvc/4.3.16.RELEASE/spring-webmvc-4.3.16.RELEASE.jar:/Users/sxc/.m2/repository/org/freemarker/freemarker/2.3.28/freemarker-2.3.28.jar:/Users/sxc/.m2/repository/com/baomidou/mybatis-plus-boot-starter/3.0.7.1/mybatis-plus-boot-starter-3.0.7.1.jar:/Users/sxc/.m2/repository/com/baomidou/mybatis-plus/3.0.7.1/mybatis-plus-3.0.7.1.jar:/Users/sxc/.m2/repository/com/baomidou/mybatis-plus-extension/3.0.7.1/mybatis-plus-extension-3.0.7.1.jar:/Users/sxc/.m2/repository/com/baomidou/mybatis-plus-core/3.0.7.1/mybatis-plus-core-3.0.7.1.jar:/Users/sxc/.m2/repository/com/baomidou/mybatis-plus-annotation/3.0.7.1/mybatis-plus-annotation-3.0.7.1.jar:/Users/sxc/.m2/repository/com/github/jsqlparser/jsqlparser/1.3/jsqlparser-1.3.jar:/Users/sxc/.m2/repository/org/mybatis/mybatis-spring/1.3.2/mybatis-spring-1.3.2.jar:/Users/sxc/.m2/repository/org/mybatis/mybatis/3.4.6/mybatis-3.4.6.jar:/Users/sxc/.m2/repository/org/springframework/boot/spring-boot-starter-jdbc/1.5.12.RELEASE/spring-boot-starter-jdbc-1.5.12.RELEASE.jar:/Users/sxc/.m2/repository/org/apache/tomcat/tomcat-jdbc/8.5.29/tomcat-jdbc-8.5.29.jar:/Users/sxc/.m2/repository/org/apache/tomcat/tomcat-juli/8.5.29/tomcat-juli-8.5.29.jar:/Users/sxc/.m2/repository/org/springframework/spring-jdbc/4.3.16.RELEASE/spring-jdbc-4.3.16.RELEASE.jar:/Users/sxc/.m2/repository/com/zaxxer/HikariCP/3.3.0/HikariCP-3.3.0.jar:/Users/sxc/.m2/repository/org/slf4j/slf4j-api/1.7.7/slf4j-api-1.7.7.jar:/Users/sxc/.m2/repository/org/springframework/boot/spring-boot-devtools/1.5.12.RELEASE/spring-boot-devtools-1.5.12.RELEASE.jar:/Users/sxc/.m2/repository/mysql/mysql-connector-java/5.1.46/mysql-connector-java-5.1.46.jar:/Users/sxc/.m2/repository/org/projectlombok/lombok/1.16.20/lombok-1.16.20.jar:/Users/sxc/.m2/repository/redis/clients/jedis/2.10.1/jedis-2.10.1.jar:/Users/sxc/.m2/repository/org/apache/commons/commons-pool2/2.4.3/commons-pool2-2.4.3.jar:/Users/sxc/.m2/repository/com/alibaba/fastjson/1.2.54/fastjson-1.2.54.jar:/Applications/IntelliJ IDEA.app/Contents/lib/idea_rt.jar" com.baolongxing.loan.Application
Connected to the target VM, address: '127.0.0.1:53412', transport: 'socket'
17:51:31.117 [main] DEBUG org.springframework.boot.devtools.settings.DevToolsSettings - Included patterns for restart : [/mybatis-plus-[\w-]+.jar]
17:51:31.124 [main] DEBUG org.springframework.boot.devtools.settings.DevToolsSettings - Excluded patterns for restart : [/spring-boot-starter/target/classes/, /spring-boot-autoconfigure/target/classes/, /spring-boot-starter-[\w-]+/, /spring-boot/target/classes/, /spring-boot-actuator/target/classes/, /spring-boot-devtools/target/classes/]
17:51:31.126 [main] DEBUG org.springframework.boot.devtools.restart.ChangeableUrls - Matching URLs for reloading : [file:/Users/sxc/work/demo/target/classes/]

  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::       (v1.5.12.RELEASE)

2019-01-11 17:51:31.694  INFO 14546 --- [  restartedMain] com.baolongxing.loan.Application         : Starting Application on sxcdeMacBook-Pro.local with PID 14546 (/Users/sxc/work/demo/target/classes started by sxc in /Users/sxc/work/demo)
2019-01-11 17:51:31.696  INFO 14546 --- [  restartedMain] com.baolongxing.loan.Application         : No active profile set, falling back to default profiles: default
2019-01-11 17:51:31.810  INFO 14546 --- [  restartedMain] s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@53e7caeb: startup date [Fri Jan 11 17:51:31 CST 2019]; root of context hierarchy
2019-01-11 17:51:32.433  INFO 14546 --- [  restartedMain] o.s.b.f.xml.XmlBeanDefinitionReader      : Loading XML bean definitions from URL [jar:file:/Users/sxc/.m2/repository/org/apache/servicecomb/java-chassis-core/1.1.0/java-chassis-core-1.1.0.jar!/META-INF/spring/cse.bean.xml]
2019-01-11 17:51:32.802  INFO 14546 --- [  restartedMain] o.s.b.f.xml.XmlBeanDefinitionReader      : Loading XML bean definitions from URL [jar:file:/Users/sxc/.m2/repository/org/apache/servicecomb/foundation-config/1.1.0/foundation-config-1.1.0.jar!/META-INF/spring/cse.bean.xml]
2019-01-11 17:51:32.816  INFO 14546 --- [  restartedMain] o.s.b.f.xml.XmlBeanDefinitionReader      : Loading XML bean definitions from URL [jar:file:/Users/sxc/.m2/repository/org/apache/servicecomb/handler-bizkeeper/1.1.0/handler-bizkeeper-1.1.0.jar!/META-INF/spring/cse.bean.xml]
2019-01-11 17:51:32.827  INFO 14546 --- [  restartedMain] o.s.b.f.xml.XmlBeanDefinitionReader      : Loading XML bean definitions from URL [jar:file:/Users/sxc/.m2/repository/org/apache/servicecomb/handler-loadbalance/1.1.0/handler-loadbalance-1.1.0.jar!/META-INF/spring/cse.bean.xml]
2019-01-11 17:51:32.836  INFO 14546 --- [  restartedMain] o.s.b.f.xml.XmlBeanDefinitionReader      : Loading XML bean definitions from URL [jar:file:/Users/sxc/.m2/repository/org/apache/servicecomb/foundation-vertx/1.1.0/foundation-vertx-1.1.0.jar!/META-INF/spring/cse.bean.xml]
2019-01-11 17:51:32.916  INFO 14546 --- [  restartedMain] o.s.b.f.s.DefaultListableBeanFactory     : Overriding bean definition for bean 'dataSource' with a different definition: replacing [Root bean: class [null]; scope=; abstract=false; lazyInit=false; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=org.springframework.boot.autoconfigure.jdbc.DataSourceConfiguration$Generic; factoryMethodName=dataSource; initMethodName=null; destroyMethodName=(inferred); defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Generic.class]] with [Root bean: class [null]; scope=; abstract=false; lazyInit=false; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=org.springframework.boot.autoconfigure.jdbc.DataSourceConfiguration$Hikari; factoryMethodName=dataSource; initMethodName=null; destroyMethodName=(inferred); defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Hikari.class]]
2019-01-11 17:51:32.989  INFO 14546 --- [  restartedMain] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode!
2019-01-11 17:51:33.020  INFO 14546 --- [  restartedMain] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode!
2019-01-11 17:51:33.463  INFO 14546 --- [  restartedMain] o.a.s.c.ConfigurationSpringInitializer   : Environment received, will get configurations from [org.springframework.core.env.StandardEnvironment@1596768530].
2019-01-11 17:51:33.482  WARN 14546 --- [  restartedMain] c.n.c.sources.URLConfigurationSource     : No URLs will be polled as dynamic configuration sources.
2019-01-11 17:51:33.482  INFO 14546 --- [  restartedMain] c.n.c.sources.URLConfigurationSource     : To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.
2019-01-11 17:51:33.494  INFO 14546 --- [  restartedMain] o.apache.servicecomb.config.ConfigUtil   : create local config:
2019-01-11 17:51:33.494  INFO 14546 --- [  restartedMain] o.apache.servicecomb.config.ConfigUtil   :  jar:file:/Users/sxc/.m2/repository/org/apache/servicecomb/java-chassis-core/1.1.0/java-chassis-core-1.1.0.jar!/microservice.yaml.
2019-01-11 17:51:33.494  INFO 14546 --- [  restartedMain] o.apache.servicecomb.config.ConfigUtil   :  file:/Users/sxc/work/demo/target/classes/microservice.yaml.
2019-01-11 17:51:33.524  INFO 14546 --- [  restartedMain] o.a.s.f.common.utils.SPIServiceUtils     : Found SPI service org.apache.servicecomb.config.spi.ConfigCenterConfigurationSource, count=0.
2019-01-11 17:51:33.525  INFO 14546 --- [  restartedMain] o.a.s.f.common.utils.SPIServiceUtils     : Can not find SPI service for org.apache.servicecomb.config.spi.ConfigCenterConfigurationSource
2019-01-11 17:51:33.525  INFO 14546 --- [  restartedMain] o.apache.servicecomb.config.ConfigUtil   : config center SPI service can not find, skip to load configuration from config center
2019-01-11 17:51:33.671  INFO 14546 --- [  restartedMain] f.a.AutowiredAnnotationBeanPostProcessor : JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
2019-01-11 17:51:33.914  INFO 14546 --- [  restartedMain] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$caa0206f] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
 _ _   |_  _ _|_. ___ _ |    _ 
| | |\/|_)(_| | |_\  |_)||_|_\ 
     /               |         
                        3.0.7.1 
2019-01-11 17:51:34.581  INFO 14546 --- [  restartedMain] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Starting...
2019-01-11 17:51:34.939  INFO 14546 --- [  restartedMain] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Start completed.
2019-01-11 17:51:35.177  INFO 14546 --- [  restartedMain] o.a.s.s.d.MicroserviceDefinition         : load microservice config, name=business-service, paths=[jar:file:/Users/sxc/.m2/repository/org/apache/servicecomb/java-chassis-core/1.1.0/java-chassis-core-1.1.0.jar!/microservice.yaml, file:/Users/sxc/work/demo/target/classes/microservice.yaml]
2019-01-11 17:51:35.320  INFO 14546 --- [  restartedMain] o.a.s.s.registry.ServiceRegistryFactory  : It is running in the normal mode, a separated service registry is required
2019-01-11 17:51:35.334  INFO 14546 --- [  restartedMain] o.a.s.f.common.utils.SPIServiceUtils     : Found SPI service org.apache.servicecomb.serviceregistry.registry.ServiceRegistryTaskInitializer, count=1.
2019-01-11 17:51:35.334  INFO 14546 --- [  restartedMain] o.a.s.f.common.utils.SPIServiceUtils     :   0. org.apache.servicecomb.serviceregistry.diagnosis.instance.InstanceCacheCheckTask.
2019-01-11 17:51:35.336  INFO 14546 --- [  restartedMain] o.a.s.s.r.AbstractServiceRegistry        : microserviceVersionFactory is org.apache.servicecomb.core.definition.PrivateMicroserviceVersionMetaFactory.
2019-01-11 17:51:35.341  INFO 14546 --- [  restartedMain] o.a.s.foundation.common.net.NetUtils     : add network interface name:en0,host address:10.15.17.121
2019-01-11 17:51:35.342  INFO 14546 --- [  restartedMain] o.a.s.foundation.common.net.NetUtils     : add host name from localhost:sxcdeMacBook-Pro.local,host address:10.15.17.121
2019-01-11 17:51:35.490  INFO 14546 --- [  restartedMain] o.a.s.f.common.utils.SPIServiceUtils     : Found SPI service org.apache.servicecomb.swagger.generator.core.CommonParameterTypeProcessor, count=3.
2019-01-11 17:51:35.490  INFO 14546 --- [  restartedMain] o.a.s.f.common.utils.SPIServiceUtils     :   0. org.apache.servicecomb.swagger.invocation.generator.InvocationContextProcessor.
2019-01-11 17:51:35.491  INFO 14546 --- [  restartedMain] o.a.s.f.common.utils.SPIServiceUtils     :   1. org.apache.servicecomb.swagger.generator.springmvc.processor.parameter.MultipartFileTypeProcessor.
2019-01-11 17:51:35.491  INFO 14546 --- [  restartedMain] o.a.s.f.common.utils.SPIServiceUtils     :   2. org.apache.servicecomb.swagger.generator.core.processor.parametertype.HttpServletRequestProcessor.
2019-01-11 17:51:35.505  INFO 14546 --- [  restartedMain] o.a.s.f.common.utils.SPIServiceUtils     : Found SPI service org.apache.servicecomb.swagger.generator.core.ResponseTypeProcessor, count=3.
2019-01-11 17:51:35.505  INFO 14546 --- [  restartedMain] o.a.s.f.common.utils.SPIServiceUtils     :   0. org.apache.servicecomb.swagger.generator.springmvc.processor.response.ResponseEntityProcessor.
2019-01-11 17:51:35.505  INFO 14546 --- [  restartedMain] o.a.s.f.common.utils.SPIServiceUtils     :   1. org.apache.servicecomb.swagger.generator.core.processor.response.CompletableFutureProcessor.
2019-01-11 17:51:35.506  INFO 14546 --- [  restartedMain] o.a.s.f.common.utils.SPIServiceUtils     :   2. org.apache.servicecomb.swagger.generator.jaxrs.processor.response.JaxrsResponseProcessor.
2019-01-11 17:51:35.545  INFO 14546 --- [  restartedMain] o.a.s.f.common.utils.SPIServiceUtils     : Found SPI service org.apache.servicecomb.swagger.generator.core.SwaggerGeneratorContext, count=3.
2019-01-11 17:51:35.545  INFO 14546 --- [  restartedMain] o.a.s.f.common.utils.SPIServiceUtils     :   0. org.apache.servicecomb.swagger.generator.springmvc.SpringmvcSwaggerGeneratorContext.
2019-01-11 17:51:35.545  INFO 14546 --- [  restartedMain] o.a.s.f.common.utils.SPIServiceUtils     :   1. org.apache.servicecomb.swagger.generator.jaxrs.JaxrsSwaggerGeneratorContext.
2019-01-11 17:51:35.545  INFO 14546 --- [  restartedMain] o.a.s.f.common.utils.SPIServiceUtils     :   2. org.apache.servicecomb.swagger.generator.pojo.PojoSwaggerGeneratorContext.
2019-01-11 17:51:35.560  INFO 14546 --- [  restartedMain] o.a.s.f.common.utils.SPIServiceUtils     : Found SPI service org.apache.servicecomb.swagger.invocation.response.producer.ProducerResponseMapperFactory, count=5.
2019-01-11 17:51:35.560  INFO 14546 --- [  restartedMain] o.a.s.f.common.utils.SPIServiceUtils     :   0. org.apache.servicecomb.swagger.invocation.springmvc.response.SpringmvcProducerResponseMapperFactory.
2019-01-11 17:51:35.560  INFO 14546 --- [  restartedMain] o.a.s.f.common.utils.SPIServiceUtils     :   1. org.apache.servicecomb.swagger.invocation.response.producer.CseResponseProducerResponseMapperFactory.
2019-01-11 17:51:35.560  INFO 14546 --- [  restartedMain] o.a.s.f.common.utils.SPIServiceUtils     :   2. org.apache.servicecomb.swagger.invocation.response.producer.CompletableFutureProducerResponseMapperFactory.
2019-01-11 17:51:35.560  INFO 14546 --- [  restartedMain] o.a.s.f.common.utils.SPIServiceUtils     :   3. org.apache.servicecomb.swagger.invocation.jaxrs.response.JaxrsProducerResponseMapperFactory.
2019-01-11 17:51:35.560  INFO 14546 --- [  restartedMain] o.a.s.f.common.utils.SPIServiceUtils     :   4. org.apache.servicecomb.swagger.invocation.response.producer.DefaultProducerResponseMapperFactory.
2019-01-11 17:51:35.565  INFO 14546 --- [  restartedMain] o.a.s.f.common.utils.SPIServiceUtils     : Found SPI service org.apache.servicecomb.swagger.invocation.response.consumer.ConsumerResponseMapperFactory, count=5.
2019-01-11 17:51:35.565  INFO 14546 --- [  restartedMain] o.a.s.f.common.utils.SPIServiceUtils     :   0. org.apache.servicecomb.swagger.invocation.springmvc.response.SpringmvcConsumerResponseMapperFactory.
2019-01-11 17:51:35.565  INFO 14546 --- [  restartedMain] o.a.s.f.common.utils.SPIServiceUtils     :   1. org.apache.servicecomb.swagger.invocation.response.consumer.CseResponseConsumerResponseMapperFactory.
2019-01-11 17:51:35.565  INFO 14546 --- [  restartedMain] o.a.s.f.common.utils.SPIServiceUtils     :   2. org.apache.servicecomb.swagger.invocation.response.consumer.CompletableFutureConsumerResponseMapperFactory.
2019-01-11 17:51:35.565  INFO 14546 --- [  restartedMain] o.a.s.f.common.utils.SPIServiceUtils     :   3. org.apache.servicecomb.swagger.invocation.jaxrs.response.JaxrsConsumerResponseMapperFactory.
2019-01-11 17:51:35.565  INFO 14546 --- [  restartedMain] o.a.s.f.common.utils.SPIServiceUtils     :   4. org.apache.servicecomb.swagger.invocation.response.consumer.DefaultConsumerResponseMapperFactory.
2019-01-11 17:51:35.671  INFO 14546 --- [  restartedMain] o.a.s.foundation.vertx.VertxUtils        : in debug mode, disable blocked thread check.
2019-01-11 17:51:35.953  INFO 14546 --- [  restartedMain] o.a.s.core.executor.FixedThreadExecutor  : executor group 2, thread per group 4.
2019-01-11 17:51:36.687  INFO 14546 --- [  restartedMain] org.mongodb.driver.cluster               : Cluster created with settings {hosts=[39.106.53.182:27017], mode=SINGLE, requiredClusterType=UNKNOWN, serverSelectionTimeout='30000 ms', maxWaitQueueSize=500}
2019-01-11 17:51:37.008  INFO 14546 --- [06.53.182:27017] org.mongodb.driver.connection            : Opened connection [connectionId{localValue:1, serverValue:312757}] to 39.106.53.182:27017
2019-01-11 17:51:37.019  INFO 14546 --- [06.53.182:27017] org.mongodb.driver.cluster               : Monitor thread successfully connected to server with description ServerDescription{address=39.106.53.182:27017, type=STANDALONE, state=CONNECTED, ok=true, version=ServerVersion{versionList=[3, 4, 16]}, minWireVersion=0, maxWireVersion=5, maxDocumentSize=16777216, roundTripTimeNanos=9267180}
2019-01-11 17:51:37.348  INFO 14546 --- [  restartedMain] o.s.ui.freemarker.SpringTemplateLoader   : SpringTemplateLoader for FreeMarker: using resource loader [org.springframework.context.annotation.AnnotationConfigApplicationContext@53e7caeb: startup date [Fri Jan 11 17:51:31 CST 2019]; root of context hierarchy] and template loader path [classpath:/templates/]
2019-01-11 17:51:37.354  WARN 14546 --- [  restartedMain] o.s.b.a.f.FreeMarkerAutoConfiguration    : Cannot find template location(s): [classpath:/templates/] (please add some templates, check your FreeMarker configuration, or set spring.freemarker.checkTemplateLocation=false)
2019-01-11 17:51:37.569  INFO 14546 --- [  restartedMain] o.s.b.d.a.OptionalLiveReloadServer       : LiveReload server is running on port 35729
2019-01-11 17:51:37.776  INFO 14546 --- [  restartedMain] o.s.j.e.a.AnnotationMBeanExporter        : Registering beans for JMX exposure on startup
2019-01-11 17:51:37.778  INFO 14546 --- [  restartedMain] o.s.j.e.a.AnnotationMBeanExporter        : Bean with name 'dataSource' has been autodetected for JMX exposure
2019-01-11 17:51:37.790  INFO 14546 --- [  restartedMain] o.s.j.e.a.AnnotationMBeanExporter        : Located MBean 'dataSource': registering with JMX server as MBean [com.zaxxer.hikari:name=dataSource,type=HikariDataSource]
2019-01-11 17:51:37.814  INFO 14546 --- [  restartedMain] o.a.s.f.common.utils.SPIServiceUtils     : Found SPI service org.apache.servicecomb.core.BootListener, count=0.
2019-01-11 17:51:37.857  INFO 14546 --- [  restartedMain] c.n.config.util.ConfigurationUtils       : Loaded properties file jar:file:/Users/sxc/.m2/repository/org/apache/servicecomb/handler-bizkeeper/1.1.0/handler-bizkeeper-1.1.0.jar!/hystrix-plugins.properties
2019-01-11 17:51:37.870  INFO 14546 --- [  restartedMain] s.s.g.c.CompositeSwaggerGeneratorContext : select [org.apache.servicecomb.swagger.generator.springmvc.SpringmvcSwaggerGeneratorContext] for [com.baolongxing.loan.HelloImpl] to generate schema.
2019-01-11 17:51:37.891  INFO 14546 --- [  restartedMain] o.a.s.f.common.utils.SPIServiceUtils     : Found SPI service org.apache.servicecomb.swagger.extend.property.creator.PropertyCreator, count=1.
2019-01-11 17:51:37.891  INFO 14546 --- [  restartedMain] o.a.s.f.common.utils.SPIServiceUtils     :   0. org.apache.servicecomb.swagger.extend.property.creator.springmvc.MultipartFilePropertyCreator.
2019-01-11 17:51:38.028  INFO 14546 --- [  restartedMain] o.a.s.c.d.schema.ProducerSchemaFactory   : generate swagger for business/business-service/hello, swagger: ---
swagger: "2.0"
info:
  version: "1.0.0"
  title: "swagger definition for com.baolongxing.loan.HelloImpl"
  x-java-interface: "cse.gen.business.business_service.hello.HelloImplIntf"
basePath: "/"
consumes:
- "application/json"
produces:
- "application/json"
paths:
  /hello:
    get:
      operationId: "hello"
      parameters: []
      responses:
        200:
          description: "response of 200"
          schema:
            type: "array"
            items:
              $ref: "#/definitions/BcSysParam"
definitions:
  BcSysParam:
    type: "object"
    properties:
      id:
        type: "integer"
        format: "int64"
      keys:
        type: "string"
      value:
        type: "string"
      description:
        type: "string"
    x-java-class: "com.baolongxing.loan.model.BcSysParam"

2019-01-11 17:51:38.030  INFO 14546 --- [  restartedMain] o.a.s.c.definition.loader.SchemaLoader   : register schema business/business-service/hello
2019-01-11 17:51:38.154  INFO 14546 --- [  restartedMain] o.a.s.common.javassist.JavassistUtils    : create CtClass cse.gen.business.business_service.hello.HelloImplIntf in classLoader org.springframework.boot.devtools.restart.classloader.RestartClassLoader@4ad9075c.
2019-01-11 17:51:38.154  INFO 14546 --- [  restartedMain] o.a.s.common.javassist.JavassistUtils    : create class cse.gen.business.business_service.hello.HelloImplIntf in classLoader org.springframework.boot.devtools.restart.classloader.RestartClassLoader@4ad9075c.
2019-01-11 17:51:38.157  INFO 14546 --- [  restartedMain] o.a.s.f.common.utils.SPIServiceUtils     : Found SPI service org.apache.servicecomb.swagger.invocation.response.ResponseMetaMapper, count=0.
2019-01-11 17:51:38.157  INFO 14546 --- [  restartedMain] o.a.s.f.common.utils.SPIServiceUtils     : Can not find SPI service for org.apache.servicecomb.swagger.invocation.response.ResponseMetaMapper
2019-01-11 17:51:38.168  INFO 14546 --- [  restartedMain] o.a.s.f.common.utils.SPIServiceUtils     : Found SPI service org.apache.servicecomb.serviceregistry.discovery.DiscoveryFilter, count=4.
2019-01-11 17:51:38.168  INFO 14546 --- [  restartedMain] o.a.s.f.common.utils.SPIServiceUtils     :   0. org.apache.servicecomb.core.filter.OperationInstancesDiscoveryFilter.
2019-01-11 17:51:38.168  INFO 14546 --- [  restartedMain] o.a.s.f.common.utils.SPIServiceUtils     :   1. org.apache.servicecomb.loadbalance.filter.ZoneAwareDiscoveryFilter.
2019-01-11 17:51:38.168  INFO 14546 --- [  restartedMain] o.a.s.f.common.utils.SPIServiceUtils     :   2. org.apache.servicecomb.loadbalance.filter.InstancePropertyDiscoveryFilter.
2019-01-11 17:51:38.168  INFO 14546 --- [  restartedMain] o.a.s.f.common.utils.SPIServiceUtils     :   3. org.apache.servicecomb.loadbalance.filter.IsolationDiscoveryFilter.
2019-01-11 17:51:38.170  INFO 14546 --- [  restartedMain] o.a.s.s.discovery.DiscoveryTree          : DiscoveryFilter org.apache.servicecomb.core.filter.OperationInstancesDiscoveryFilter, enabled true.
2019-01-11 17:51:38.170  INFO 14546 --- [  restartedMain] o.a.s.s.discovery.DiscoveryTree          : DiscoveryFilter org.apache.servicecomb.loadbalance.filter.ZoneAwareDiscoveryFilter, enabled true.
2019-01-11 17:51:38.170  INFO 14546 --- [  restartedMain] o.a.s.s.discovery.DiscoveryTree          : DiscoveryFilter org.apache.servicecomb.loadbalance.filter.InstancePropertyDiscoveryFilter, enabled true.
2019-01-11 17:51:38.170  INFO 14546 --- [  restartedMain] o.a.s.s.discovery.DiscoveryTree          : DiscoveryFilter org.apache.servicecomb.loadbalance.filter.IsolationDiscoveryFilter, enabled true.
2019-01-11 17:51:38.170  INFO 14546 --- [  restartedMain] o.a.s.s.discovery.DiscoveryTree          : DiscoveryFilter org.apache.servicecomb.core.filter.EndpointDiscoveryFilter, enabled true.
2019-01-11 17:51:38.180  INFO 14546 --- [  restartedMain] o.a.s.f.common.utils.SPIServiceUtils     : Found SPI service org.apache.servicecomb.swagger.invocation.extension.ProducerInvokeExtension, count=0.
2019-01-11 17:51:38.189  WARN 14546 --- [  restartedMain] o.a.s.serviceregistry.RegistryUtils      : address /0.0.0.0:8080, auto select a host address to publish 10.15.17.121:8080, maybe not the correct one
2019-01-11 17:51:38.193  INFO 14546 --- [  restartedMain] o.a.s.core.transport.TransportManager    : choose org.apache.servicecomb.transport.rest.vertx.VertxRestTransport for rest.
2019-01-11 17:51:38.193  INFO 14546 --- [  restartedMain] o.a.s.core.transport.TransportManager    : choose org.apache.servicecomb.transport.highway.HighwayTransport for highway.
2019-01-11 17:51:38.204  INFO 14546 --- [  restartedMain] o.a.s.f.common.utils.SPIServiceUtils     : Found SPI service org.apache.servicecomb.common.rest.filter.HttpClientFilter, count=3.
2019-01-11 17:51:38.204  INFO 14546 --- [  restartedMain] o.a.s.f.common.utils.SPIServiceUtils     :   0. org.apache.servicecomb.provider.springmvc.reference.RestTemplateCopyHeaderFilter.
2019-01-11 17:51:38.204  INFO 14546 --- [  restartedMain] o.a.s.f.common.utils.SPIServiceUtils     :   1. org.apache.servicecomb.common.rest.filter.inner.ClientRestArgsFilter.
2019-01-11 17:51:38.204  INFO 14546 --- [  restartedMain] o.a.s.f.common.utils.SPIServiceUtils     :   2. org.apache.servicecomb.transport.rest.client.http.DefaultHttpClientFilter.
2019-01-11 17:51:38.217  WARN 14546 --- [  restartedMain] o.a.s.foundation.vertx.VertxTLSBuilder   : keyStore [server.p12] file not exist, please check!
2019-01-11 17:51:38.217  WARN 14546 --- [  restartedMain] o.a.s.foundation.vertx.VertxTLSBuilder   : trustStore [trust.jks] file not exist, please check!
2019-01-11 17:51:38.231  WARN 14546 --- [  restartedMain] o.a.s.foundation.vertx.VertxTLSBuilder   : keyStore [server.p12] file not exist, please check!
2019-01-11 17:51:38.232  WARN 14546 --- [  restartedMain] o.a.s.foundation.vertx.VertxTLSBuilder   : trustStore [trust.jks] file not exist, please check!
2019-01-11 17:51:38.615  INFO 14546 --- [ntloop-thread-4] o.a.s.f.common.utils.SPIServiceUtils     : Found SPI service org.apache.servicecomb.transport.rest.vertx.GlobalRestFailureHandler, count=0.
2019-01-11 17:51:38.615  INFO 14546 --- [ntloop-thread-4] o.a.s.f.common.utils.SPIServiceUtils     : Can not find SPI service for org.apache.servicecomb.transport.rest.vertx.GlobalRestFailureHandler
2019-01-11 17:51:38.622  INFO 14546 --- [ntloop-thread-4] o.a.s.f.common.utils.SPIServiceUtils     : Found SPI service org.apache.servicecomb.common.rest.filter.HttpServerFilter, count=1.
2019-01-11 17:51:38.622  INFO 14546 --- [ntloop-thread-4] o.a.s.f.common.utils.SPIServiceUtils     :   0. org.apache.servicecomb.common.rest.filter.inner.ServerRestArgsFilter.
2019-01-11 17:51:38.624  INFO 14546 --- [ntloop-thread-4] o.a.s.f.common.utils.SPIServiceUtils     : Found SPI service org.apache.servicecomb.transport.rest.vertx.VertxHttpDispatcher, count=1.
2019-01-11 17:51:38.624  INFO 14546 --- [ntloop-thread-4] o.a.s.f.common.utils.SPIServiceUtils     :   0. org.apache.servicecomb.transport.rest.vertx.VertxRestDispatcher.
2019-01-11 17:51:38.628  INFO 14546 --- [ntloop-thread-4] o.a.s.common.rest.UploadConfig           : servicecomb.uploads.directory is null, not support upload.
2019-01-11 17:51:38.786  INFO 14546 --- [ntloop-thread-4] o.a.s.t.rest.vertx.RestServerVerticle    : rest listen success. address=0.0.0.0:8080
2019-01-11 17:51:38.787  INFO 14546 --- [  restartedMain] o.a.s.core.transport.TransportManager    : endpoint to publish: rest://10.15.17.121:8080
2019-01-11 17:51:38.789  WARN 14546 --- [  restartedMain] o.a.s.foundation.vertx.VertxTLSBuilder   : keyStore [server.p12] file not exist, please check!
2019-01-11 17:51:38.789  WARN 14546 --- [  restartedMain] o.a.s.foundation.vertx.VertxTLSBuilder   : trustStore [trust.jks] file not exist, please check!
2019-01-11 17:51:38.789  WARN 14546 --- [  restartedMain] o.a.s.foundation.vertx.VertxTLSBuilder   : keyStore [server.p12] file not exist, please check!
2019-01-11 17:51:38.789  WARN 14546 --- [  restartedMain] o.a.s.foundation.vertx.VertxTLSBuilder   : trustStore [trust.jks] file not exist, please check!
2019-01-11 17:51:38.798  WARN 14546 --- [  restartedMain] o.a.s.core.transport.AbstractTransport   : Service center do not support encoded query, so we use unencoded query, this caused not support chinese/space (and maybe other char) in query value.
2019-01-11 17:51:38.801  WARN 14546 --- [  restartedMain] o.a.s.serviceregistry.RegistryUtils      : address /0.0.0.0:7070, auto select a host address to publish 10.15.17.121:7070, maybe not the correct one
2019-01-11 17:51:38.818  INFO 14546 --- [ntloop-thread-0] o.a.s.t.highway.HighwayServerVerticle    : highway listen success. address=0.0.0.0:7070
2019-01-11 17:51:38.819  INFO 14546 --- [  restartedMain] o.a.s.core.transport.TransportManager    : endpoint to publish: highway://10.15.17.121:7070?login=true
2019-01-11 17:51:38.825  INFO 14546 --- [  restartedMain] o.a.s.f.common.utils.SPIServiceUtils     : Found SPI service org.apache.servicecomb.common.rest.codec.produce.ProduceProcessor, count=2.
2019-01-11 17:51:38.825  INFO 14546 --- [  restartedMain] o.a.s.f.common.utils.SPIServiceUtils     :   0. org.apache.servicecomb.common.rest.codec.produce.ProduceJsonProcessor.
2019-01-11 17:51:38.825  INFO 14546 --- [  restartedMain] o.a.s.f.common.utils.SPIServiceUtils     :   1. org.apache.servicecomb.common.rest.codec.produce.ProduceTextPlainProcessor.
2019-01-11 17:51:38.837  INFO 14546 --- [  restartedMain] o.a.s.c.rest.locator.ServicePathManager  : add schema to service paths. business:business-service:hello.
2019-01-11 17:51:38.839  INFO 14546 --- [  restartedMain] o.a.s.c.rest.locator.MicroservicePaths   : Swagger mapped "{[/hello/], method=[GET], produces=[application/json]}" onto public abstract java.util.List cse.gen.business.business_service.hello.HelloImplIntf.hello()
2019-01-11 17:51:38.842  WARN 14546 --- [  restartedMain] o.a.s.f.common.event.SimpleSubscriber    : Failed to create lambda for method: public void org.apache.servicecomb.core.SCBEngine$1.afterRegistryInstance(org.apache.servicecomb.serviceregistry.task.MicroserviceInstanceRegisterTask), fallback to reflect.
2019-01-11 17:51:38.853  INFO 14546 --- [  restartedMain] o.a.s.s.task.MicroserviceRegisterTask    : running microservice register task.
2019-01-11 17:51:38.874  INFO 14546 --- [  restartedMain] o.a.s.foundation.vertx.VertxUtils        : in debug mode, disable blocked thread check.
2019-01-11 17:51:39.220  INFO 14546 --- [  restartedMain] o.a.s.s.task.MicroserviceRegisterTask    : Microservice exists in service center, no need to register. id=[541e61c5866dade3a620a499b4239ed0c9aa080d] appId=[business], name=[business-service], version=[1.0.0], env=[]
2019-01-11 17:51:39.244  INFO 14546 --- [  restartedMain] o.a.s.s.task.MicroserviceRegisterTask    : SchemaIds are equals to service center. serviceId=[541e61c5866dade3a620a499b4239ed0c9aa080d], appId=[business], name=[business-service], version=[1.0.0], env=[], schemaIds=[hello]
2019-01-11 17:51:39.251  INFO 14546 --- [  restartedMain] o.a.s.s.task.MicroserviceRegisterTask    : schemaId [hello] exists [true], summary exists [true]
2019-01-11 17:51:39.272  WARN 14546 --- [  restartedMain] o.a.s.s.task.MicroserviceRegisterTask    : service center schema and local schema both are different:
 service center schema:
[---
swagger: "2.0"
info:
  version: "1.0.0"
  title: "swagger definition for com.baolongxing.loan.HelloImpl"
  x-java-interface: "cse.gen.business.business_service.hello.HelloImplIntf"
basePath: "/"
consumes:
- "application/json"
produces:
- "application/json"
paths:
  /hello:
    get:
      operationId: "hello"
      parameters: []
      responses:
        200:
          description: "response of 200"
          schema:
            type: "string"

 local schema:
[---
swagger: "2.0"
info:
  version: "1.0.0"
  title: "swagger definition for com.baolongxing.loan.HelloImpl"
  x-java-interface: "cse.gen.business.business_service.hello.HelloImplIntf"
basePath: "/"
consumes:
- "application/json"
produces:
- "application/json"
paths:
  /hello:
    get:
      operationId: "hello"
      parameters: []
      responses:
        200:
          description: "response of 200"
          schema:
            type: "array"
            items:
              $ref: "#/definitions/BcSysParam"
definitions:
  BcSysParam:
    type: "object"
    properties:
      id:
        type: "integer"
        format: "int64"
      keys:
        type: "string"
      value:
        type: "string"
      description:
        type: "string"
    x-java-class: "com.baolongxing.loan.model.BcSysParam"
]
2019-01-11 17:51:39.272  WARN 14546 --- [  restartedMain] o.a.s.s.task.MicroserviceRegisterTask    : The difference in local schema:
[array"
            items:
              $ref: "#/definitions/BcSysParam"
definitions:
  BcSysParam:
    type: "object"
    properties:
      id:
        type: "integer"
        format: "int64"
      keys:
        type: "string"
      value:
        type: "string"
      description:
        type: "string"
    x-java-class: "com.baolongxing.loan.model.BcSysParam"
]
2019-01-11 17:51:39.273  INFO 14546 --- [  restartedMain] org.apache.servicecomb.core.SCBEngine    : ServiceComb is closing now...
2019-01-11 17:51:39.274  INFO 14546 --- [  restartedMain] org.apache.servicecomb.core.SCBEngine    : BootListener org.apache.servicecomb.core.provider.producer.ProducerProviderManager succeed to process BEFORE_CLOSE.
2019-01-11 17:51:39.274  INFO 14546 --- [  restartedMain] org.apache.servicecomb.core.SCBEngine    : BootListener org.apache.servicecomb.common.rest.RestEngineSchemaListener succeed to process BEFORE_CLOSE.
2019-01-11 17:51:39.275  INFO 14546 --- [  restartedMain] o.a.s.s.registry.RemoteServiceRegistry   : service center task is shutdown.
2019-01-11 17:51:39.276  INFO 14546 --- [  restartedMain] o.a.s.foundation.vertx.VertxUtils        : Closing vertx registry.
2019-01-11 17:51:39.312  INFO 14546 --- [ntloop-thread-8] o.a.s.foundation.vertx.VertxUtils        : Success to close vertx registry.
2019-01-11 17:51:39.312  INFO 14546 --- [  restartedMain] o.a.s.foundation.vertx.VertxUtils        : Closing vertx config-center.
2019-01-11 17:51:39.312  INFO 14546 --- [  restartedMain] o.a.s.foundation.vertx.VertxUtils        : Vertx config-center not exist.
2019-01-11 17:51:39.313  INFO 14546 --- [  restartedMain] o.a.s.foundation.vertx.VertxUtils        : Closing vertx transport.
2019-01-11 17:51:39.321  INFO 14546 --- [ntloop-thread-8] o.a.s.foundation.vertx.VertxUtils        : Success to close vertx transport.
2019-01-11 17:51:39.324  INFO 14546 --- [  restartedMain] org.apache.servicecomb.core.SCBEngine    : BootListener org.apache.servicecomb.core.provider.producer.ProducerProviderManager succeed to process AFTER_CLOSE.
2019-01-11 17:51:39.324  INFO 14546 --- [  restartedMain] org.apache.servicecomb.core.SCBEngine    : BootListener org.apache.servicecomb.common.rest.RestEngineSchemaListener succeed to process AFTER_CLOSE.
2019-01-11 17:51:39.324  INFO 14546 --- [  restartedMain] org.apache.servicecomb.core.SCBEngine    : ServiceComb had closed
2019-01-11 17:51:39.326  INFO 14546 --- [  restartedMain] utoConfigurationReportLoggingInitializer : 

Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled.
2019-01-11 17:51:39.343 ERROR 14546 --- [  restartedMain] o.s.boot.SpringApplication               : Application startup failed

java.lang.IllegalStateException: ServiceComb init failed.
    at org.apache.servicecomb.core.SCBEngine.init(SCBEngine.java:216) ~[java-chassis-core-1.1.0.jar:1.1.0]
    at org.apache.servicecomb.core.CseApplicationListener.onApplicationEvent(CseApplicationListener.java:81) ~[java-chassis-core-1.1.0.jar:1.1.0]
    at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172) ~[spring-context-4.3.16.RELEASE.jar:4.3.16.RELEASE]
    at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165) ~[spring-context-4.3.16.RELEASE.jar:4.3.16.RELEASE]
    at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139) ~[spring-context-4.3.16.RELEASE.jar:4.3.16.RELEASE]
    at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:393) ~[spring-context-4.3.16.RELEASE.jar:4.3.16.RELEASE]
    at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:347) ~[spring-context-4.3.16.RELEASE.jar:4.3.16.RELEASE]
    at org.springframework.boot.context.event.EventPublishingRunListener.finished(EventPublishingRunListener.java:101) ~[spring-boot-1.5.12.RELEASE.jar:1.5.12.RELEASE]
    at org.springframework.boot.SpringApplicationRunListeners.callFinishedListener(SpringApplicationRunListeners.java:79) ~[spring-boot-1.5.12.RELEASE.jar:1.5.12.RELEASE]
    at org.springframework.boot.SpringApplicationRunListeners.finished(SpringApplicationRunListeners.java:72) ~[spring-boot-1.5.12.RELEASE.jar:1.5.12.RELEASE]
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:305) [spring-boot-1.5.12.RELEASE.jar:1.5.12.RELEASE]
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:1118) [spring-boot-1.5.12.RELEASE.jar:1.5.12.RELEASE]
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:1107) [spring-boot-1.5.12.RELEASE.jar:1.5.12.RELEASE]
    at com.baolongxing.loan.Application.main(Application.java:30) [classes/:na]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_181]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_181]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_181]
    at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_181]
    at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49) [spring-boot-devtools-1.5.12.RELEASE.jar:1.5.12.RELEASE]
Caused by: java.lang.IllegalStateException: The schema(id=[hello]) content held by this instance and the service center is different. You need to increment microservice version before deploying. Or you can configure service_description.environment=development to work in development environment and ignore this error
    at org.apache.servicecomb.serviceregistry.task.MicroserviceRegisterTask.compareAndReRegisterSchema(MicroserviceRegisterTask.java:277) ~[service-registry-1.1.0.jar:1.1.0]
    at org.apache.servicecomb.serviceregistry.task.MicroserviceRegisterTask.registerSchema(MicroserviceRegisterTask.java:206) ~[service-registry-1.1.0.jar:1.1.0]
    at org.apache.servicecomb.serviceregistry.task.MicroserviceRegisterTask.registerSchemas(MicroserviceRegisterTask.java:170) ~[service-registry-1.1.0.jar:1.1.0]
    at org.apache.servicecomb.serviceregistry.task.MicroserviceRegisterTask.doRegister(MicroserviceRegisterTask.java:122) ~[service-registry-1.1.0.jar:1.1.0]
    at org.apache.servicecomb.serviceregistry.task.AbstractRegisterTask.doRun(AbstractRegisterTask.java:41) ~[service-registry-1.1.0.jar:1.1.0]
    at org.apache.servicecomb.serviceregistry.task.AbstractTask.run(AbstractTask.java:53) ~[service-registry-1.1.0.jar:1.1.0]
    at org.apache.servicecomb.serviceregistry.task.CompositeTask.run(CompositeTask.java:35) ~[service-registry-1.1.0.jar:1.1.0]
    at org.apache.servicecomb.serviceregistry.task.ServiceCenterTask.init(ServiceCenterTask.java:82) ~[service-registry-1.1.0.jar:1.1.0]
    at org.apache.servicecomb.serviceregistry.registry.AbstractServiceRegistry.run(AbstractServiceRegistry.java:178) ~[service-registry-1.1.0.jar:1.1.0]
    at org.apache.servicecomb.serviceregistry.registry.RemoteServiceRegistry.run(RemoteServiceRegistry.java:74) ~[service-registry-1.1.0.jar:1.1.0]
    at org.apache.servicecomb.serviceregistry.RegistryUtils.run(RegistryUtils.java:70) ~[service-registry-1.1.0.jar:1.1.0]
    at org.apache.servicecomb.core.SCBEngine.doInit(SCBEngine.java:251) ~[java-chassis-core-1.1.0.jar:1.1.0]
    at org.apache.servicecomb.core.SCBEngine.init(SCBEngine.java:209) ~[java-chassis-core-1.1.0.jar:1.1.0]
    ... 18 common frames omitted

2019-01-11 17:51:39.345  INFO 14546 --- [  restartedMain] s.c.a.AnnotationConfigApplicationContext : Closing org.springframework.context.annotation.AnnotationConfigApplicationContext@53e7caeb: startup date [Fri Jan 11 17:51:31 CST 2019]; root of context hierarchy
2019-01-11 17:51:39.352  INFO 14546 --- [  restartedMain] o.s.j.e.a.AnnotationMBeanExporter        : Unregistering JMX-exposed beans on shutdown
2019-01-11 17:51:39.352  INFO 14546 --- [  restartedMain] o.s.j.e.a.AnnotationMBeanExporter        : Unregistering JMX-exposed beans
2019-01-11 17:51:39.352  INFO 14546 --- [  restartedMain] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Shutdown initiated...
2019-01-11 17:51:39.359  INFO 14546 --- [  restartedMain] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Shutdown completed.
Disconnected from the target VM, address: '127.0.0.1:53412', transport: 'socket'

Process finished with exit code 1

改成

@GetMapping(path = "/hello")
    public BcSysParam hello() {

        List<BcSysParam> paramList = bcSysParamMapper.selectList(
                new QueryWrapper<BcSysParam>()
                        .orderByDesc("id")
                        .last("limit 5")
        );
        String tmp = JSON.toJSONString(paramList);
        System.out.println(tmp);
        return paramList.get(0);
    }

也类似 我看了https://docs.servicecomb.io/java-chassis/zh_CN/build-provider/interface-constraints.html 以及https://docs.servicecomb.io/java-chassis/zh_CN/build-provider/code-first.html 的文档,似乎应该是支持的啊?

liubao68 commented 5 years ago

支持的。 这种情况是因为修改了接口,需要修改版本号,以方便ServiceComb进行接口兼容管理。 可以参考这里的案例: https://bbs.huaweicloud.com/forum/thread-13931-1-1.html

sxcooler commented 5 years ago

@liubao68 多谢,这种情况1.0.0的时候遇到过,当时看到了提示,这次不知道为什么没看到,我在上面的log里搜索了看见了,抱歉。

mingqibee commented 5 years ago

您好 ,请问我也遇到同样的问题,我改怎么改我的配置呢? @RestSchema(schemaId = "index") @RestController public class IndexController {

    @Autowired
    private Environment env;

    @GetMapping("/")
    public String index() {
        String[] profiles = env.getActiveProfiles();

        if (profiles == null || profiles.length == 0) {
            profiles = env.getDefaultProfiles();
        }

        String profileStr = "";
        for (String profile : profiles) {
            profileStr = profileStr + " " + profile;
        }

        return profileStr+"@lai2-cert";
    }

}

谢谢谢谢!!!