newArrayList(apiKey(),apiKey1()));
+ }
+
+ private ApiInfo groupApiInfo(){
+ return new ApiInfoBuilder()
+ .title("swagger-bootstrap-ui很棒~~~!!!")
+ .description("swagger-bootstrap-ui-demo RESTful APIs
")
+ .termsOfServiceUrl("http://www.group.com/")
+ .contact("group@qq.com")
+ .version("1.0")
+ .build();
+ }
+
+
+
+ private ApiKey apiKey() {
+ return new ApiKey("BearerToken", "Authorization", "header");
+ }
+ private ApiKey apiKey1() {
+ return new ApiKey("BearerToken1", "Authorization-x", "header");
+ }
+
+ private SecurityContext securityContext() {
+ return SecurityContext.builder()
+ .securityReferences(defaultAuth())
+ .forPaths(PathSelectors.regex("/.*"))
+ .build();
+ }
+ private SecurityContext securityContext1() {
+ return SecurityContext.builder()
+ .securityReferences(defaultAuth1())
+ .forPaths(PathSelectors.regex("/.*"))
+ .build();
+ }
+
+ List defaultAuth() {
+ AuthorizationScope authorizationScope = new AuthorizationScope("global", "accessEverything");
+ AuthorizationScope[] authorizationScopes = new AuthorizationScope[1];
+ authorizationScopes[0] = authorizationScope;
+ return Lists.newArrayList(new SecurityReference("BearerToken", authorizationScopes));
+ }
+ List defaultAuth1() {
+ AuthorizationScope authorizationScope = new AuthorizationScope("global", "accessEverything");
+ AuthorizationScope[] authorizationScopes = new AuthorizationScope[1];
+ authorizationScopes[0] = authorizationScope;
+ return Lists.newArrayList(new SecurityReference("BearerToken1", authorizationScopes));
+ }
+
+}
diff --git a/swagger-bootstrap-ui-gateway/service-order/src/main/java/com/xiaominfo/swagger/service/order/controller/OrderController.java b/swagger-bootstrap-ui-gateway/service-order/src/main/java/com/xiaominfo/swagger/service/order/controller/OrderController.java
new file mode 100644
index 0000000..f44ff2a
--- /dev/null
+++ b/swagger-bootstrap-ui-gateway/service-order/src/main/java/com/xiaominfo/swagger/service/order/controller/OrderController.java
@@ -0,0 +1,53 @@
+/*
+ * Copyright (C) 2018 Zhejiang xiaominfo Technology CO.,LTD.
+ * All rights reserved.
+ * Official Web Site: http://www.xiaominfo.com.
+ * Developer Web Site: http://open.xiaominfo.com.
+ */
+
+package com.xiaominfo.swagger.service.order.controller;
+
+import com.google.common.collect.Lists;
+import com.xiaominfo.swagger.service.order.common.Rest;
+import com.xiaominfo.swagger.service.order.model.Order;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import org.springframework.web.bind.annotation.*;
+
+import java.util.List;
+
+/***
+ *
+ * @since:swagger-bootstrap-ui 1.0
+ * @author xiaoymin@foxmail.com
+ * 2019/05/04 11:26
+ */
+@Api(tags = "订单模块")
+@RestController
+@RequestMapping("/user")
+public class OrderController {
+
+
+ @ApiOperation(value = "查询订单列表")
+ @PostMapping(value = "/list")
+ public Rest> list(){
+ Rest> rest=new Rest<>();
+ List list= Lists.newArrayList(new Order(),new Order(),new Order(),new Order(),new Order(),new Order());
+ rest.setData(list);
+ return rest;
+ }
+
+ @ApiOperation(value = "根据订单id查询订单详情")
+ @GetMapping("/queryById")
+ public Rest queryById(@RequestParam(value = "id") String id){
+ Rest userRest=new Rest<>();
+ userRest.setData(new Order());
+
+ return userRest;
+ }
+
+
+
+
+
+}
diff --git a/swagger-bootstrap-ui-gateway/service-order/src/main/java/com/xiaominfo/swagger/service/order/model/Order.java b/swagger-bootstrap-ui-gateway/service-order/src/main/java/com/xiaominfo/swagger/service/order/model/Order.java
new file mode 100644
index 0000000..fa037ba
--- /dev/null
+++ b/swagger-bootstrap-ui-gateway/service-order/src/main/java/com/xiaominfo/swagger/service/order/model/Order.java
@@ -0,0 +1,53 @@
+/*
+ * Copyright (C) 2018 Zhejiang xiaominfo Technology CO.,LTD.
+ * All rights reserved.
+ * Official Web Site: http://www.xiaominfo.com.
+ * Developer Web Site: http://open.xiaominfo.com.
+ */
+
+package com.xiaominfo.swagger.service.order.model;
+
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+
+import java.text.DecimalFormat;
+import java.util.Random;
+
+/***
+ *
+ * @since:swagger-bootstrap-ui 1.0
+ * @author xiaoymin@foxmail.com
+ * 2019/05/04 11:37
+ */
+@ApiModel(value = "订单模块")
+public class Order {
+
+ @ApiModelProperty(value = "订单号")
+ private String orderNo;
+
+ @ApiModelProperty(value = "订单名称")
+ private String name;
+
+
+ public Order() {
+ DecimalFormat df=new DecimalFormat("00000");
+ this.orderNo="TAW"+df.format(new Random().nextInt(1000));
+ this.name="订单"+new Random().nextInt(1000);
+ }
+
+ public String getOrderNo() {
+ return orderNo;
+ }
+
+ public void setOrderNo(String orderNo) {
+ this.orderNo = orderNo;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+}
diff --git a/swagger-bootstrap-ui-gateway/service-order/src/main/resources/application.yml b/swagger-bootstrap-ui-gateway/service-order/src/main/resources/application.yml
new file mode 100644
index 0000000..8a42ede
--- /dev/null
+++ b/swagger-bootstrap-ui-gateway/service-order/src/main/resources/application.yml
@@ -0,0 +1,9 @@
+server:
+ port: 10002
+spring:
+ application:
+ name: service-order
+eureka:
+ client:
+ serviceUrl:
+ defaultZone: http://localhost:10000/eureka/
diff --git a/swagger-bootstrap-ui-gateway/service-order/src/test/java/com/xiaominfo/swagger/service/order/ServiceUserApplicationTests.java b/swagger-bootstrap-ui-gateway/service-order/src/test/java/com/xiaominfo/swagger/service/order/ServiceUserApplicationTests.java
new file mode 100644
index 0000000..f8ee544
--- /dev/null
+++ b/swagger-bootstrap-ui-gateway/service-order/src/test/java/com/xiaominfo/swagger/service/order/ServiceUserApplicationTests.java
@@ -0,0 +1,16 @@
+package com.xiaominfo.swagger.service.order;
+
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.springframework.boot.test.context.SpringBootTest;
+import org.springframework.test.context.junit4.SpringRunner;
+
+@RunWith(SpringRunner.class)
+@SpringBootTest
+public class ServiceUserApplicationTests {
+
+ @Test
+ public void contextLoads() {
+ }
+
+}
diff --git a/swagger-bootstrap-ui-gateway/service-server/pom.xml b/swagger-bootstrap-ui-gateway/service-server/pom.xml
new file mode 100644
index 0000000..467b557
--- /dev/null
+++ b/swagger-bootstrap-ui-gateway/service-server/pom.xml
@@ -0,0 +1,39 @@
+
+
+ 4.0.0
+
+ com.xiaominfo.swagger
+ swagger-bootstrap-ui-gateway
+ 1.0
+ ../pom.xml
+
+ com.xiaominfo.swagger
+ service-server
+ service-server
+ SwaggerBootstrapUi eureka Server Project
+
+
+
+
+ org.springframework.cloud
+ spring-cloud-starter-netflix-eureka-server
+
+
+
+ org.springframework.boot
+ spring-boot-starter-test
+ test
+
+
+
+
+
+
+ org.springframework.boot
+ spring-boot-maven-plugin
+
+
+
+
+
diff --git a/swagger-bootstrap-ui-gateway/service-server/src/main/java/com/xiaominfo/swagger/service/ServiceServerApplication.java b/swagger-bootstrap-ui-gateway/service-server/src/main/java/com/xiaominfo/swagger/service/ServiceServerApplication.java
new file mode 100644
index 0000000..b67bc12
--- /dev/null
+++ b/swagger-bootstrap-ui-gateway/service-server/src/main/java/com/xiaominfo/swagger/service/ServiceServerApplication.java
@@ -0,0 +1,34 @@
+package com.xiaominfo.swagger.service;
+
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;
+import org.springframework.context.ConfigurableApplicationContext;
+import org.springframework.core.env.Environment;
+
+import java.net.InetAddress;
+import java.net.UnknownHostException;
+
+@EnableEurekaServer
+@SpringBootApplication
+public class ServiceServerApplication {
+
+ static Logger logger= LoggerFactory.getLogger(ServiceServerApplication.class);
+
+ public static void main(String[] args) throws UnknownHostException {
+ ConfigurableApplicationContext application=SpringApplication.run(ServiceServerApplication.class, args);
+ Environment env = application.getEnvironment();
+ logger.info("\n----------------------------------------------------------\n\t" +
+ "Application '{}' is running! Access URLs:\n\t" +
+ "Local: \t\thttp://localhost:{}\n\t" +
+ "External: \thttp://{}:{}\n\t"+
+ "----------------------------------------------------------",
+ env.getProperty("spring.application.name"),
+ env.getProperty("server.port"),
+ InetAddress.getLocalHost().getHostAddress(),
+ env.getProperty("server.port"));
+ }
+
+}
diff --git a/swagger-bootstrap-ui-gateway/service-server/src/main/resources/application.yml b/swagger-bootstrap-ui-gateway/service-server/src/main/resources/application.yml
new file mode 100644
index 0000000..3050e70
--- /dev/null
+++ b/swagger-bootstrap-ui-gateway/service-server/src/main/resources/application.yml
@@ -0,0 +1,13 @@
+server:
+ port: 10000
+eureka:
+ instance:
+ hostname: localhost
+ client:
+ register-with-eureka: false
+ fetch-registry: false
+ service-url:
+ defaultZone: http://${eureka.instance.hostname}:${server.port}/eureka/
+spring:
+ application:
+ name: swagger-bootstrap-ui-server
\ No newline at end of file
diff --git a/swagger-bootstrap-ui-gateway/service-server/src/test/java/com/xiaominfo/swagger/service/ServiceServerApplicationTests.java b/swagger-bootstrap-ui-gateway/service-server/src/test/java/com/xiaominfo/swagger/service/ServiceServerApplicationTests.java
new file mode 100644
index 0000000..220e820
--- /dev/null
+++ b/swagger-bootstrap-ui-gateway/service-server/src/test/java/com/xiaominfo/swagger/service/ServiceServerApplicationTests.java
@@ -0,0 +1,16 @@
+package com.xiaominfo.swagger.service;
+
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.springframework.boot.test.context.SpringBootTest;
+import org.springframework.test.context.junit4.SpringRunner;
+
+@RunWith(SpringRunner.class)
+@SpringBootTest
+public class ServiceServerApplicationTests {
+
+ @Test
+ public void contextLoads() {
+ }
+
+}
diff --git a/swagger-bootstrap-ui-gateway/service-user/pom.xml b/swagger-bootstrap-ui-gateway/service-user/pom.xml
new file mode 100644
index 0000000..639bda5
--- /dev/null
+++ b/swagger-bootstrap-ui-gateway/service-user/pom.xml
@@ -0,0 +1,45 @@
+
+
+ 4.0.0
+
+ com.xiaominfo.swagger
+ swagger-bootstrap-ui-gateway
+ 1.0
+ ../pom.xml
+
+ service-user
+ service-user
+ User Service
+
+
+ 1.8
+
+
+
+
+ org.springframework.boot
+ spring-boot-starter-web
+
+
+ org.springframework.cloud
+ spring-cloud-starter-netflix-eureka-client
+
+
+ org.springframework.boot
+ spring-boot-starter-test
+ test
+
+
+
+
+
+
+
+ org.springframework.boot
+ spring-boot-maven-plugin
+
+
+
+
+
diff --git a/swagger-bootstrap-ui-gateway/service-user/src/main/java/com/xiaominfo/swagger/service/user/ServiceUserApplication.java b/swagger-bootstrap-ui-gateway/service-user/src/main/java/com/xiaominfo/swagger/service/user/ServiceUserApplication.java
new file mode 100644
index 0000000..9cc1c23
--- /dev/null
+++ b/swagger-bootstrap-ui-gateway/service-user/src/main/java/com/xiaominfo/swagger/service/user/ServiceUserApplication.java
@@ -0,0 +1,38 @@
+package com.xiaominfo.swagger.service.user;
+
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
+import org.springframework.context.ConfigurableApplicationContext;
+import org.springframework.core.env.Environment;
+
+import java.net.InetAddress;
+import java.net.UnknownHostException;
+
+
+@EnableEurekaClient
+@SpringBootApplication
+public class ServiceUserApplication {
+
+ static Logger logger= LoggerFactory.getLogger(ServiceUserApplication.class);
+
+ public static void main(String[] args) throws UnknownHostException {
+ ConfigurableApplicationContext application=SpringApplication.run(ServiceUserApplication.class, args);
+ Environment env = application.getEnvironment();
+ logger.info("\n----------------------------------------------------------\n\t" +
+ "Application '{}' is running! Access URLs:\n\t" +
+ "Local: \t\thttp://localhost:{}\n\t" +
+ "External: \thttp://{}:{}\n\t"+
+ "Doc: \thttp://{}:{}/doc.html\n"+
+ "----------------------------------------------------------",
+ env.getProperty("spring.application.name"),
+ env.getProperty("server.port"),
+ InetAddress.getLocalHost().getHostAddress(),
+ env.getProperty("server.port"),
+ InetAddress.getLocalHost().getHostAddress(),
+ env.getProperty("server.port"));
+ }
+
+}
diff --git a/swagger-bootstrap-ui-gateway/service-user/src/main/java/com/xiaominfo/swagger/service/user/common/Rest.java b/swagger-bootstrap-ui-gateway/service-user/src/main/java/com/xiaominfo/swagger/service/user/common/Rest.java
new file mode 100644
index 0000000..c892190
--- /dev/null
+++ b/swagger-bootstrap-ui-gateway/service-user/src/main/java/com/xiaominfo/swagger/service/user/common/Rest.java
@@ -0,0 +1,60 @@
+/*
+ * Copyright (C) 2017 Zhejiang BYCDAO Technology CO.,LTD.
+ * All rights reserved.
+ * Official Web Site: http://www.bycdao.com.
+ * Developer Web Site: http://open.bycdao.com.
+ */
+
+package com.xiaominfo.swagger.service.user.common;
+
+import io.swagger.annotations.ApiModelProperty;
+
+/***
+ *
+ * @since:swagger-bootstrap-ui-demo 1.0
+ * @author xiaoymin@foxmail.com
+ * 2017/08/21 16:41
+ */
+public class Rest {
+
+ @ApiModelProperty(value = "是否成功")
+ private boolean success=true;
+ @ApiModelProperty(value = "返回对象")
+ private T data;
+ @ApiModelProperty(value = "错误编号")
+ private Integer errCode;
+ @ApiModelProperty(value = "错误信息")
+ private String message;
+
+ public boolean isSuccess() {
+ return success;
+ }
+
+ public void setSuccess(boolean success) {
+ this.success = success;
+ }
+
+ public T getData() {
+ return data;
+ }
+
+ public void setData(T data) {
+ this.data = data;
+ }
+
+ public Integer getErrCode() {
+ return errCode;
+ }
+
+ public void setErrCode(Integer errCode) {
+ this.errCode = errCode;
+ }
+
+ public String getMessage() {
+ return message;
+ }
+
+ public void setMessage(String message) {
+ this.message = message;
+ }
+}
diff --git a/swagger-bootstrap-ui-gateway/service-user/src/main/java/com/xiaominfo/swagger/service/user/config/SwaggerConfiguration.java b/swagger-bootstrap-ui-gateway/service-user/src/main/java/com/xiaominfo/swagger/service/user/config/SwaggerConfiguration.java
new file mode 100644
index 0000000..0aee0dc
--- /dev/null
+++ b/swagger-bootstrap-ui-gateway/service-user/src/main/java/com/xiaominfo/swagger/service/user/config/SwaggerConfiguration.java
@@ -0,0 +1,86 @@
+
+package com.xiaominfo.swagger.service.user.config;
+
+import com.github.xiaoymin.swaggerbootstrapui.annotations.EnableSwaggerBootstrapUI;
+import com.google.common.collect.Lists;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+import org.springframework.context.annotation.Import;
+import org.springframework.core.annotation.Order;
+import springfox.bean.validators.configuration.BeanValidatorPluginsConfiguration;
+import springfox.documentation.builders.ApiInfoBuilder;
+import springfox.documentation.builders.PathSelectors;
+import springfox.documentation.builders.RequestHandlerSelectors;
+import springfox.documentation.service.*;
+import springfox.documentation.spi.DocumentationType;
+import springfox.documentation.spi.service.contexts.SecurityContext;
+import springfox.documentation.spring.web.plugins.Docket;
+import springfox.documentation.swagger2.annotations.EnableSwagger2;
+
+import java.util.List;
+
+
+@Configuration
+@EnableSwagger2
+@EnableSwaggerBootstrapUI
+@Import(BeanValidatorPluginsConfiguration.class)
+public class SwaggerConfiguration {
+
+ @Bean(value = "userApi")
+ @Order(value = 1)
+ public Docket groupRestApi() {
+ return new Docket(DocumentationType.SWAGGER_2)
+ .apiInfo(groupApiInfo())
+ .select()
+ .apis(RequestHandlerSelectors.basePackage("com.xiaominfo.swagger.service.user.controller"))
+ .paths(PathSelectors.any())
+
+ .build().securityContexts(Lists.newArrayList(securityContext(),securityContext1())).securitySchemes(Lists.newArrayList(apiKey(),apiKey1()));
+ }
+
+ private ApiInfo groupApiInfo(){
+ return new ApiInfoBuilder()
+ .title("swagger-bootstrap-ui很棒~~~!!!")
+ .description("swagger-bootstrap-ui-demo RESTful APIs
")
+ .termsOfServiceUrl("http://www.group.com/")
+ .contact("group@qq.com")
+ .version("1.0")
+ .build();
+ }
+
+
+
+ private ApiKey apiKey() {
+ return new ApiKey("BearerToken", "Authorization", "header");
+ }
+ private ApiKey apiKey1() {
+ return new ApiKey("BearerToken1", "Authorization-x", "header");
+ }
+
+ private SecurityContext securityContext() {
+ return SecurityContext.builder()
+ .securityReferences(defaultAuth())
+ .forPaths(PathSelectors.regex("/.*"))
+ .build();
+ }
+ private SecurityContext securityContext1() {
+ return SecurityContext.builder()
+ .securityReferences(defaultAuth1())
+ .forPaths(PathSelectors.regex("/.*"))
+ .build();
+ }
+
+ List defaultAuth() {
+ AuthorizationScope authorizationScope = new AuthorizationScope("global", "accessEverything");
+ AuthorizationScope[] authorizationScopes = new AuthorizationScope[1];
+ authorizationScopes[0] = authorizationScope;
+ return Lists.newArrayList(new SecurityReference("BearerToken", authorizationScopes));
+ }
+ List defaultAuth1() {
+ AuthorizationScope authorizationScope = new AuthorizationScope("global", "accessEverything");
+ AuthorizationScope[] authorizationScopes = new AuthorizationScope[1];
+ authorizationScopes[0] = authorizationScope;
+ return Lists.newArrayList(new SecurityReference("BearerToken1", authorizationScopes));
+ }
+
+}
diff --git a/swagger-bootstrap-ui-gateway/service-user/src/main/java/com/xiaominfo/swagger/service/user/controller/UserController.java b/swagger-bootstrap-ui-gateway/service-user/src/main/java/com/xiaominfo/swagger/service/user/controller/UserController.java
new file mode 100644
index 0000000..55a3bf1
--- /dev/null
+++ b/swagger-bootstrap-ui-gateway/service-user/src/main/java/com/xiaominfo/swagger/service/user/controller/UserController.java
@@ -0,0 +1,57 @@
+/*
+ * Copyright (C) 2018 Zhejiang xiaominfo Technology CO.,LTD.
+ * All rights reserved.
+ * Official Web Site: http://www.xiaominfo.com.
+ * Developer Web Site: http://open.xiaominfo.com.
+ */
+
+package com.xiaominfo.swagger.service.user.controller;
+
+import com.google.common.collect.Lists;
+import com.xiaominfo.swagger.service.user.common.Rest;
+import com.xiaominfo.swagger.service.user.model.User;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import org.springframework.web.bind.annotation.*;
+
+import java.util.List;
+
+/***
+ *
+ * @since:swagger-bootstrap-ui 1.0
+ * @author xiaoymin@foxmail.com
+ * 2019/05/04 11:26
+ */
+@Api(tags = "用户模块")
+@RestController
+@RequestMapping("/user")
+public class UserController {
+
+
+ @ApiOperation(value = "查询用户列表")
+ @PostMapping(value = "/list")
+ public Rest> list(){
+ Rest> rest=new Rest<>();
+ List list= Lists.newArrayList(new User("user1","Java开发工程师","公司2")
+ ,new User("user2","C开发工程师","公司1")
+ ,new User("user3","JavaScript工程师","公司3")
+ ,new User("user4","Ui工程师","公司4")
+ ,new User("user5","总经理","公司1"));
+ rest.setData(list);
+ return rest;
+ }
+
+ @ApiOperation(value = "根据用户id查询用户详情")
+ @GetMapping("/queryById")
+ public Rest queryById(@RequestParam(value = "id") String id){
+ Rest userRest=new Rest<>();
+ userRest.setData(new User("user5","总经理","公司1"));
+
+ return userRest;
+ }
+
+
+
+
+
+}
diff --git a/swagger-bootstrap-ui-gateway/service-user/src/main/java/com/xiaominfo/swagger/service/user/model/User.java b/swagger-bootstrap-ui-gateway/service-user/src/main/java/com/xiaominfo/swagger/service/user/model/User.java
new file mode 100644
index 0000000..7374617
--- /dev/null
+++ b/swagger-bootstrap-ui-gateway/service-user/src/main/java/com/xiaominfo/swagger/service/user/model/User.java
@@ -0,0 +1,74 @@
+/*
+ * Copyright (C) 2018 Zhejiang xiaominfo Technology CO.,LTD.
+ * All rights reserved.
+ * Official Web Site: http://www.xiaominfo.com.
+ * Developer Web Site: http://open.xiaominfo.com.
+ */
+
+package com.xiaominfo.swagger.service.user.model;
+
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+
+import java.util.Random;
+
+/***
+ *
+ * @since:swagger-bootstrap-ui 1.0
+ * @author xiaoymin@foxmail.com
+ * 2019/05/04 11:26
+ */
+@ApiModel(value = "用户")
+public class User {
+
+ @ApiModelProperty(value = "姓名")
+ private String name;
+
+ @ApiModelProperty(value = "年龄")
+ private Integer age;
+
+ @ApiModelProperty(value = "工作")
+ private String worker;
+
+ @ApiModelProperty(value = "单位")
+ private String company;
+
+ public User(String name, String worker, String company) {
+ this.name = name;
+ this.worker = worker;
+ this.company = company;
+ this.age=new Random().nextInt(100);
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public Integer getAge() {
+ return age;
+ }
+
+ public void setAge(Integer age) {
+ this.age = age;
+ }
+
+ public String getWorker() {
+ return worker;
+ }
+
+ public void setWorker(String worker) {
+ this.worker = worker;
+ }
+
+ public String getCompany() {
+ return company;
+ }
+
+ public void setCompany(String company) {
+ this.company = company;
+ }
+}
diff --git a/swagger-bootstrap-ui-gateway/service-user/src/main/resources/application.yml b/swagger-bootstrap-ui-gateway/service-user/src/main/resources/application.yml
new file mode 100644
index 0000000..ac5f6f7
--- /dev/null
+++ b/swagger-bootstrap-ui-gateway/service-user/src/main/resources/application.yml
@@ -0,0 +1,9 @@
+server:
+ port: 10001
+spring:
+ application:
+ name: service-user
+eureka:
+ client:
+ serviceUrl:
+ defaultZone: http://localhost:10000/eureka/
diff --git a/swagger-bootstrap-ui-gateway/service-user/src/test/java/com/xiaominfo/swagger/service/order/ServiceUserApplicationTests.java b/swagger-bootstrap-ui-gateway/service-user/src/test/java/com/xiaominfo/swagger/service/order/ServiceUserApplicationTests.java
new file mode 100644
index 0000000..f8ee544
--- /dev/null
+++ b/swagger-bootstrap-ui-gateway/service-user/src/test/java/com/xiaominfo/swagger/service/order/ServiceUserApplicationTests.java
@@ -0,0 +1,16 @@
+package com.xiaominfo.swagger.service.order;
+
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.springframework.boot.test.context.SpringBootTest;
+import org.springframework.test.context.junit4.SpringRunner;
+
+@RunWith(SpringRunner.class)
+@SpringBootTest
+public class ServiceUserApplicationTests {
+
+ @Test
+ public void contextLoads() {
+ }
+
+}
--
Gitee