韦二铭 5 年之前
父节点
当前提交
0f82224029
共有 33 个文件被更改,包括 0 次插入854 次删除
  1. 0 2
      base-springframework-starter/pom.xml
  2. 0 2
      pom.xml
  3. 0 14
      wei-developer-platform/wei-developer-platform-api/src/main/java/com/wei/user/api/ApiService.java
  4. 0 65
      wei-developer-platform/wei-developer-platform-app/src/main/java/com/wei/developer/platform/controller/UserController.java
  5. 0 55
      wei-developer-platform/wei-developer-platform-app/src/main/java/com/wei/developer/platform/entity/User.java
  6. 0 16
      wei-developer-platform/wei-developer-platform-app/src/main/java/com/wei/developer/platform/mapper/UserMapper.java
  7. 0 14
      wei-developer-platform/wei-developer-platform-app/src/main/java/com/wei/developer/platform/mapstruct/UserMapstruct.java
  8. 0 16
      wei-developer-platform/wei-developer-platform-app/src/main/java/com/wei/developer/platform/service/UserService.java
  9. 0 24
      wei-developer-platform/wei-developer-platform-app/src/main/java/com/wei/developer/platform/service/impl/UserServiceImpl.java
  10. 0 59
      wei-developer-platform/wei-developer-platform-app/src/main/java/com/wei/developer/platform/vo/UserVO.java
  11. 0 1
      wei-test-cloud/.gitignore
  12. 0 54
      wei-test-cloud/pom.xml
  13. 0 3
      wei-test-cloud/wei-test-cloud-api/.gitignore
  14. 0 47
      wei-test-cloud/wei-test-cloud-api/pom.xml
  15. 0 14
      wei-test-cloud/wei-test-cloud-api/src/main/java/com/wei/cloud/api/ApiService.java
  16. 0 3
      wei-test-cloud/wei-test-cloud-app/.gitignore
  17. 0 56
      wei-test-cloud/wei-test-cloud-app/pom.xml
  18. 0 12
      wei-test-cloud/wei-test-cloud-app/src/main/java/com/wei/cloud/TestCloudApplication.java
  19. 0 18
      wei-test-cloud/wei-test-cloud-app/src/main/java/com/wei/cloud/api/impl/ApiServiceImpl.java
  20. 0 28
      wei-test-cloud/wei-test-cloud-app/src/main/java/com/wei/cloud/controller/TestController.java
  21. 0 5
      wei-test-cloud/wei-test-cloud-app/src/main/java/com/wei/cloud/service/CloudService.java
  22. 0 13
      wei-test-cloud/wei-test-cloud-app/src/main/java/com/wei/cloud/service/impl/CloudServiceImpl.java
  23. 0 33
      wei-test-cloud/wei-test-cloud-app/src/main/java/com/wei/cloud/vo/UserVO.java
  24. 0 15
      wei-test-cloud/wei-test-cloud-app/src/main/resources/bootstrap.yml
  25. 0 54
      wei-test/pom.xml
  26. 0 3
      wei-test/wei-test-api/.gitignore
  27. 0 47
      wei-test/wei-test-api/pom.xml
  28. 0 3
      wei-test/wei-test-app/.gitignore
  29. 0 56
      wei-test/wei-test-app/pom.xml
  30. 0 14
      wei-test/wei-test-app/src/main/java/com/wei/test/TestApplication.java
  31. 0 36
      wei-test/wei-test-app/src/main/java/com/wei/test/controller/TestController.java
  32. 0 33
      wei-test/wei-test-app/src/main/java/com/wei/test/vo/UserVO.java
  33. 0 39
      wei-test/wei-test-app/src/main/resources/bootstrap.yml

+ 0 - 2
base-springframework-starter/pom.xml

@@ -8,8 +8,6 @@
     <version>0.0.1-SNAPSHOT</version>
 
     <modules>
-        <module>../wei-test</module>
-        <module>../wei-test-cloud</module>
         <module>../wei-gateway</module>
     </modules>
 

+ 0 - 2
pom.xml

@@ -12,8 +12,6 @@
     <modules>
         <module>base-springframework</module>
         <module>base-springframework-starter</module>
-        <module>wei-test</module>
-        <module>wei-test-cloud</module>
     </modules>
 
     <properties>

+ 0 - 14
wei-developer-platform/wei-developer-platform-api/src/main/java/com/wei/user/api/ApiService.java

@@ -1,14 +0,0 @@
-package com.wei.cloud.api;
-
-import org.springframework.cloud.openfeign.FeignClient;
-import org.springframework.web.bind.annotation.GetMapping;
-import org.springframework.web.bind.annotation.RequestHeader;
-import org.springframework.web.bind.annotation.RequestMapping;
-
-@FeignClient(name = "wei-test-cloud")
-@RequestMapping("/apiService")
-public interface ApiService {
-
-    @GetMapping("/test")
-    String test(@RequestHeader("Filter-Enabled") String filterEnabled);
-}

+ 0 - 65
wei-developer-platform/wei-developer-platform-app/src/main/java/com/wei/developer/platform/controller/UserController.java

@@ -1,65 +0,0 @@
-package com.wei.developer.platform.controller;
-
-import com.fasterxml.jackson.core.JsonProcessingException;
-import com.wei.base.springframework.constant.vo.RestfulVO;
-import com.wei.base.springframework.redis.utils.RedisLock;
-import com.wei.developer.platform.entity.User;
-import com.wei.developer.platform.service.UserService;
-import io.swagger.annotations.Api;
-import io.swagger.annotations.ApiOperation;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.web.bind.annotation.*;
-
-/**
- * <p>
- * 用户信息表 前端控制器
- * </p>
- *
- * @author wei
- * @since 2020-08-13
- */
-@Api(tags = "test")
-@RestController
-@RequestMapping("/user")
-public class UserController {
-
-    @Autowired
-    private UserService userService;
-
-    @Autowired
-    private RedisLock redisLock;
-
-    @ApiOperation("分页查询所有数据")
-    @GetMapping("/test")
-    public User test(User user) {
-        return userService.getById(1);
-    }
-
-    @ApiOperation("分页查询所有数据")
-    @GetMapping("/test2")
-    public RestfulVO<User> test2(@RequestParam(value = "test") String test) {
-        return new RestfulVO(userService.getById(1));
-    }
-
-    @ApiOperation("分页查询所有数据")
-    @GetMapping("/test1")
-    public RestfulVO<String> test1() {
-        return new RestfulVO("1111");
-    }
-
-    @ApiOperation("分页查询所有数据")
-    @PostMapping("/test3")
-    public void test1(@RequestBody UserVO user) {
-        System.err.println(redisLock.lock("test"));
-        System.err.println(11111);
-        System.err.println(redisLock.unlock("test"));
-        return;
-    }
-
-    @ApiOperation("分页查询所有数据")
-    @GetMapping("/test4")
-    public void test1(Object object) throws JsonProcessingException {
-        System.err.println(object.toString());
-        return;
-    }
-}

+ 0 - 55
wei-developer-platform/wei-developer-platform-app/src/main/java/com/wei/developer/platform/entity/User.java

@@ -1,55 +0,0 @@
-package com.wei.developer.platform.entity;
-
-import java.util.Date;
-import java.io.Serializable;
-import lombok.Data;
-import lombok.EqualsAndHashCode;
-
-/**
- * <p>
- * 用户信息表
- * </p>
- *
- * @author wei
- * @since 2020-08-13
- */
-@Data
-@EqualsAndHashCode(callSuper = false)
-public class User implements Serializable {
-
-    private static final long serialVersionUID = 1L;
-
-    private Long id;
-
-    /**
-     * 用户名称
-     */
-    private String name;
-
-    /**
-     * 用户手机号
-     */
-    private String mobilePhone;
-
-    /**
-     * 用户邮箱
-     */
-    private String email;
-
-    /**
-     * 密码
-     */
-    private String password;
-
-    /**
-     * 用户头像地址
-     */
-    private String pictureUrl;
-
-    /**
-     * 创建时间
-     */
-    private Date createTime;
-
-
-}

+ 0 - 16
wei-developer-platform/wei-developer-platform-app/src/main/java/com/wei/developer/platform/mapper/UserMapper.java

@@ -1,16 +0,0 @@
-package com.wei.developer.platform.mapper;
-
-import com.baomidou.mybatisplus.core.mapper.BaseMapper;
-import com.wei.developer.platform.entity.User;
-
-/**
- * <p>
- * 用户信息表 Mapper 接口
- * </p>
- *
- * @author wei
- * @since 2020-08-13
- */
-public interface UserMapper extends BaseMapper<User> {
-
-}

+ 0 - 14
wei-developer-platform/wei-developer-platform-app/src/main/java/com/wei/developer/platform/mapstruct/UserMapstruct.java

@@ -1,14 +0,0 @@
-package com.wei.developer.platform.mapstruct;
-
-import org.mapstruct.Mapper;
-
-/**
-* 用户信息表 服务类型实体转换
-*
-* @author wei
-* @since 2020-08-13
-*/
-@Mapper(componentModel = "spring")
-public interface UserMapstruct {
-
-}

+ 0 - 16
wei-developer-platform/wei-developer-platform-app/src/main/java/com/wei/developer/platform/service/UserService.java

@@ -1,16 +0,0 @@
-package com.wei.developer.platform.service;
-
-import com.baomidou.mybatisplus.extension.service.IService;
-import com.wei.developer.platform.entity.User;
-
-/**
- * <p>
- * 用户信息表 服务类
- * </p>
- *
- * @author wei
- * @since 2020-08-13
- */
-public interface UserService extends IService<User> {
-
-}

+ 0 - 24
wei-developer-platform/wei-developer-platform-app/src/main/java/com/wei/developer/platform/service/impl/UserServiceImpl.java

@@ -1,24 +0,0 @@
-package com.wei.developer.platform.service.impl;
-
-import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
-import com.wei.developer.platform.entity.User;
-import com.wei.developer.platform.mapper.UserMapper;
-import com.wei.developer.platform.service.UserService;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.stereotype.Service;
-
-/**
- * <p>
- * 用户信息表 服务实现类
- * </p>
- *
- * @author wei
- * @since 2020-08-13
- */
-@Service
-public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {
-
-    @Autowired
-    private UserMapper userMapper;
-
-}

+ 0 - 59
wei-developer-platform/wei-developer-platform-app/src/main/java/com/wei/developer/platform/vo/UserVO.java

@@ -1,59 +0,0 @@
-package com.wei.developer.platform.vo;
-
-import lombok.Data;
-import lombok.EqualsAndHashCode;
-
-import java.io.Serializable;
-import java.util.Date;
-import java.util.List;
-
-/**
- * <p>
- * 用户信息表
- * </p>
- *
- * @author wei
- * @since 2020-08-13
- */
-@Data
-@EqualsAndHashCode(callSuper = false)
-public class UserVO implements Serializable {
-
-    private static final long serialVersionUID = 1L;
-
-    private Long id;
-
-    /**
-     * 用户名称
-     */
-    private String name;
-
-    /**
-     * 用户手机号
-     */
-    private String mobilePhone;
-
-    /**
-     * 用户邮箱
-     */
-    private String email;
-
-    /**
-     * 密码
-     */
-    private String password;
-
-    /**
-     * 用户头像地址
-     */
-    private String pictureUrl;
-
-    /**
-     * 创建时间
-     */
-    private Date createTime;
-
-    List<UserVO> user;
-
-    List<String> list;
-}

+ 0 - 1
wei-test-cloud/.gitignore

@@ -1 +0,0 @@
-/.project

+ 0 - 54
wei-test-cloud/pom.xml

@@ -1,54 +0,0 @@
-<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.wei</groupId>
-        <artifactId>base-springframework-starter</artifactId>
-        <version>0.0.1-SNAPSHOT</version>
-    </parent>
-
-    <packaging>pom</packaging>
-    <artifactId>wei-test-cloud</artifactId>
-
-    <modules>
-        <module>wei-test-cloud-api</module>
-        <module>wei-test-cloud-app</module>
-    </modules>
-
-    <build>
-        <plugins>
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-compiler-plugin</artifactId>
-                <configuration>
-                    <source>1.8</source>
-                    <target>1.8</target>
-                </configuration>
-            </plugin>
-        </plugins>
-    </build>
-
-    <!--	<repositories>
-            <repository>
-                <id></id>
-                <url></url>
-            </repository>
-        </repositories>
-        <pluginRepositories>
-            <pluginRepository>
-                <id></id>
-                <url></url>
-            </pluginRepository>
-        </pluginRepositories>
-        <distributionManagement>
-            <repository>
-                <id></id>
-                <url></url>
-            </repository>
-            <snapshotRepository>
-                <id></id>
-                <url></url>
-            </snapshotRepository>
-        </distributionManagement>-->
-</project>

+ 0 - 3
wei-test-cloud/wei-test-cloud-api/.gitignore

@@ -1,3 +0,0 @@
-/target/
-/.classpath
-/.project

+ 0 - 47
wei-test-cloud/wei-test-cloud-api/pom.xml

@@ -1,47 +0,0 @@
-<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.wei</groupId>
-        <artifactId>wei-test-cloud</artifactId>
-        <version>0.0.1-SNAPSHOT</version>
-    </parent>
-
-    <artifactId>wei-test-cloud-api</artifactId>
-    <build>
-        <plugins>
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-compiler-plugin</artifactId>
-                <configuration>
-                    <source>1.8</source>
-                    <target>1.8</target>
-                </configuration>
-            </plugin>
-        </plugins>
-    </build>
-
-    <!--	<repositories>
-            <repository>
-                <id></id>
-                <url></url>
-            </repository>
-        </repositories>
-        <pluginRepositories>
-            <pluginRepository>
-                <id></id>
-                <url></url>
-            </pluginRepository>
-        </pluginRepositories>
-        <distributionManagement>
-            <repository>
-                <id></id>
-                <url></url>
-            </repository>
-            <snapshotRepository>
-                <id></id>
-                <url></url>
-            </snapshotRepository>
-        </distributionManagement>-->
-</project>

+ 0 - 14
wei-test-cloud/wei-test-cloud-api/src/main/java/com/wei/cloud/api/ApiService.java

@@ -1,14 +0,0 @@
-package com.wei.cloud.api;
-
-import org.springframework.cloud.openfeign.FeignClient;
-import org.springframework.web.bind.annotation.GetMapping;
-import org.springframework.web.bind.annotation.RequestHeader;
-import org.springframework.web.bind.annotation.RequestMapping;
-
-@FeignClient(name = "wei-test-cloud")
-@RequestMapping("/apiService")
-public interface ApiService {
-
-    @GetMapping("/test")
-    String test(@RequestHeader("Filter-Enabled") String filterEnabled);
-}

+ 0 - 3
wei-test-cloud/wei-test-cloud-app/.gitignore

@@ -1,3 +0,0 @@
-/target/
-/.classpath
-/.project

+ 0 - 56
wei-test-cloud/wei-test-cloud-app/pom.xml

@@ -1,56 +0,0 @@
-<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.wei</groupId>
-        <artifactId>wei-test-cloud</artifactId>
-        <version>0.0.1-SNAPSHOT</version>
-    </parent>
-
-    <artifactId>wei-test-cloud-app</artifactId>
-
-    <dependencies>
-        <dependency>
-            <groupId>com.wei</groupId>
-            <artifactId>wei-test-cloud-api</artifactId>
-            <version>0.0.1-SNAPSHOT</version>
-        </dependency>
-    </dependencies>
-
-    <build>
-        <plugins>
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-compiler-plugin</artifactId>
-                <configuration>
-                    <source>1.8</source>
-                    <target>1.8</target>
-                </configuration>
-            </plugin>
-        </plugins>
-    </build>
-
-    <!--	<repositories>
-            <repository>
-                <id></id>
-                <url></url>
-            </repository>
-        </repositories>
-        <pluginRepositories>
-            <pluginRepository>
-                <id></id>
-                <url></url>
-            </pluginRepository>
-        </pluginRepositories>
-        <distributionManagement>
-            <repository>
-                <id></id>
-                <url></url>
-            </repository>
-            <snapshotRepository>
-                <id></id>
-                <url></url>
-            </snapshotRepository>
-        </distributionManagement>-->
-</project>

+ 0 - 12
wei-test-cloud/wei-test-cloud-app/src/main/java/com/wei/cloud/TestCloudApplication.java

@@ -1,12 +0,0 @@
-package com.wei.cloud;
-
-import org.springframework.boot.SpringApplication;
-import org.springframework.boot.autoconfigure.SpringBootApplication;
-
-@SpringBootApplication
-public class TestCloudApplication {
-
-    public static void main(String[] args) {
-        SpringApplication.run(TestCloudApplication.class, args);
-    }
-}

+ 0 - 18
wei-test-cloud/wei-test-cloud-app/src/main/java/com/wei/cloud/api/impl/ApiServiceImpl.java

@@ -1,18 +0,0 @@
-package com.wei.cloud.api.impl;
-
-import com.wei.cloud.api.ApiService;
-import com.wei.cloud.service.CloudService;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.web.bind.annotation.RestController;
-
-@RestController
-public class ApiServiceImpl implements ApiService {
-
-    @Autowired
-    private CloudService cloudService;
-
-    @Override
-    public String test(String b) {
-        return cloudService.test();
-    }
-}

+ 0 - 28
wei-test-cloud/wei-test-cloud-app/src/main/java/com/wei/cloud/controller/TestController.java

@@ -1,28 +0,0 @@
-package com.wei.cloud.controller;
-
-import com.wei.base.springframework.constant.vo.RestfulVO;
-import com.wei.cloud.vo.UserVO;
-import org.springframework.web.bind.annotation.*;
-
-@RestController
-public class TestController {
-
-    private String test;
-
-    @GetMapping("/test")
-    public String test() {
-        return test;
-    }
-
-    @PostMapping("/test1")
-    public String test(@RequestBody UserVO userVO) {
-        System.err.println(userVO.toString());
-        return "test";
-    }
-
-    @PostMapping("/test2/{ttt}")
-    public RestfulVO<String> test2(@PathVariable("ttt") String ttt) {
-        System.err.println(ttt);
-        return new RestfulVO("test");
-    }
-}

+ 0 - 5
wei-test-cloud/wei-test-cloud-app/src/main/java/com/wei/cloud/service/CloudService.java

@@ -1,5 +0,0 @@
-package com.wei.cloud.service;
-
-public interface CloudService {
-    String test();
-}

+ 0 - 13
wei-test-cloud/wei-test-cloud-app/src/main/java/com/wei/cloud/service/impl/CloudServiceImpl.java

@@ -1,13 +0,0 @@
-package com.wei.cloud.service.impl;
-
-import com.wei.cloud.service.CloudService;
-import org.springframework.stereotype.Service;
-
-@Service
-public class CloudServiceImpl implements CloudService {
-
-    @Override
-    public String test() {
-        return "test";
-    }
-}

+ 0 - 33
wei-test-cloud/wei-test-cloud-app/src/main/java/com/wei/cloud/vo/UserVO.java

@@ -1,33 +0,0 @@
-package com.wei.cloud.vo;
-
-import lombok.AllArgsConstructor;
-import lombok.Data;
-import lombok.NoArgsConstructor;
-
-import java.io.Serializable;
-import java.util.Date;
-import java.util.List;
-
-/**
- * 统一返回值
- *
- * @author : weierming
- * @date : 2020/7/10
- */
-@Data
-@NoArgsConstructor
-@AllArgsConstructor
-public class UserVO implements Serializable {
-
-    private static final long serialVersionUID = 6488177830405564354L;
-
-    private Long userId;
-
-    private String userName;
-
-    private Date date;
-
-    private List<UserVO> list;
-
-    private UserVO userVO;
-}

+ 0 - 15
wei-test-cloud/wei-test-cloud-app/src/main/resources/bootstrap.yml

@@ -1,15 +0,0 @@
-server:
-  port: 8102
-
-spring:
-  application:
-    name: wei-test-cloud
-  cloud:
-    consul:
-      # consul的IP
-      host: 192.168.11.128
-      # consul启动端口
-      port: 8500
-
-  profiles:
-    active: dev

+ 0 - 54
wei-test/pom.xml

@@ -1,54 +0,0 @@
-<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.wei</groupId>
-        <artifactId>base-springframework-starter</artifactId>
-        <version>0.0.1-SNAPSHOT</version>
-    </parent>
-
-    <packaging>pom</packaging>
-    <artifactId>wei-test</artifactId>
-
-    <modules>
-        <module>wei-test-api</module>
-        <module>wei-test-app</module>
-    </modules>
-
-    <build>
-        <plugins>
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-compiler-plugin</artifactId>
-                <configuration>
-                    <source>1.8</source>
-                    <target>1.8</target>
-                </configuration>
-            </plugin>
-        </plugins>
-    </build>
-
-    <!--	<repositories>
-            <repository>
-                <id></id>
-                <url></url>
-            </repository>
-        </repositories>
-        <pluginRepositories>
-            <pluginRepository>
-                <id></id>
-                <url></url>
-            </pluginRepository>
-        </pluginRepositories>
-        <distributionManagement>
-            <repository>
-                <id></id>
-                <url></url>
-            </repository>
-            <snapshotRepository>
-                <id></id>
-                <url></url>
-            </snapshotRepository>
-        </distributionManagement>-->
-</project>

+ 0 - 3
wei-test/wei-test-api/.gitignore

@@ -1,3 +0,0 @@
-/target/
-/.classpath
-/.project

+ 0 - 47
wei-test/wei-test-api/pom.xml

@@ -1,47 +0,0 @@
-<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.wei</groupId>
-        <artifactId>wei-test</artifactId>
-        <version>0.0.1-SNAPSHOT</version>
-    </parent>
-
-    <artifactId>wei-test-api</artifactId>
-    <build>
-        <plugins>
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-compiler-plugin</artifactId>
-                <configuration>
-                    <source>1.8</source>
-                    <target>1.8</target>
-                </configuration>
-            </plugin>
-        </plugins>
-    </build>
-
-    <!--	<repositories>
-            <repository>
-                <id></id>
-                <url></url>
-            </repository>
-        </repositories>
-        <pluginRepositories>
-            <pluginRepository>
-                <id></id>
-                <url></url>
-            </pluginRepository>
-        </pluginRepositories>
-        <distributionManagement>
-            <repository>
-                <id></id>
-                <url></url>
-            </repository>
-            <snapshotRepository>
-                <id></id>
-                <url></url>
-            </snapshotRepository>
-        </distributionManagement>-->
-</project>

+ 0 - 3
wei-test/wei-test-app/.gitignore

@@ -1,3 +0,0 @@
-/target/
-/.classpath
-/.project

+ 0 - 56
wei-test/wei-test-app/pom.xml

@@ -1,56 +0,0 @@
-<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.wei</groupId>
-        <artifactId>wei-test</artifactId>
-        <version>0.0.1-SNAPSHOT</version>
-    </parent>
-
-    <artifactId>wei-test-app</artifactId>
-
-    <dependencies>
-        <dependency>
-            <groupId>com.wei</groupId>
-            <artifactId>wei-test-cloud-api</artifactId>
-            <version>0.0.1-SNAPSHOT</version>
-        </dependency>
-    </dependencies>
-
-    <build>
-        <plugins>
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-compiler-plugin</artifactId>
-                <configuration>
-                    <source>1.8</source>
-                    <target>1.8</target>
-                </configuration>
-            </plugin>
-        </plugins>
-    </build>
-
-    <!--	<repositories>
-            <repository>
-                <id></id>
-                <url></url>
-            </repository>
-        </repositories>
-        <pluginRepositories>
-            <pluginRepository>
-                <id></id>
-                <url></url>
-            </pluginRepository>
-        </pluginRepositories>
-        <distributionManagement>
-            <repository>
-                <id></id>
-                <url></url>
-            </repository>
-            <snapshotRepository>
-                <id></id>
-                <url></url>
-            </snapshotRepository>
-        </distributionManagement>-->
-</project>

+ 0 - 14
wei-test/wei-test-app/src/main/java/com/wei/test/TestApplication.java

@@ -1,14 +0,0 @@
-package com.wei.test;
-
-import org.springframework.boot.SpringApplication;
-import org.springframework.boot.autoconfigure.SpringBootApplication;
-import org.springframework.cloud.openfeign.EnableFeignClients;
-
-@EnableFeignClients(basePackages = "com.wei.cloud.api")
-@SpringBootApplication
-public class TestApplication {
-
-    public static void main(String[] args) {
-        SpringApplication.run(TestApplication.class, args);
-    }
-}

+ 0 - 36
wei-test/wei-test-app/src/main/java/com/wei/test/controller/TestController.java

@@ -1,36 +0,0 @@
-package com.wei.test.controller;
-
-import com.wei.base.springframework.constant.vo.RestfulVO;
-import com.wei.cloud.api.ApiService;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.beans.factory.annotation.Value;
-import org.springframework.web.bind.annotation.GetMapping;
-import org.springframework.web.bind.annotation.PathVariable;
-import org.springframework.web.bind.annotation.PostMapping;
-import org.springframework.web.bind.annotation.RestController;
-
-@RestController
-public class TestController {
-
-    @Autowired
-    private ApiService apiService;
-
-    @Value("${test}")
-    private String test;
-
-    @GetMapping("/test")
-    public String test() {
-        return test;
-    }
-
-    @GetMapping("/testCloud")
-    public String testCloud() {
-        return apiService.test("true");
-    }
-
-    @PostMapping("/test2/{ttt}")
-    public RestfulVO<String> test2(@PathVariable("ttt") String ttt) {
-        System.err.println(ttt);
-        return new RestfulVO("test");
-    }
-}

+ 0 - 33
wei-test/wei-test-app/src/main/java/com/wei/test/vo/UserVO.java

@@ -1,33 +0,0 @@
-package com.wei.test.vo;
-
-import lombok.AllArgsConstructor;
-import lombok.Data;
-import lombok.NoArgsConstructor;
-
-import java.io.Serializable;
-import java.util.Date;
-import java.util.List;
-
-/**
- * 统一返回值
- *
- * @author : weierming
- * @date : 2020/7/10
- */
-@Data
-@NoArgsConstructor
-@AllArgsConstructor
-public class UserVO implements Serializable {
-
-    private static final long serialVersionUID = 6488177830405564354L;
-
-    private Long userId;
-
-    private String userName;
-
-    private Date date;
-
-    private List<UserVO> list;
-
-    private UserVO userVO;
-}

+ 0 - 39
wei-test/wei-test-app/src/main/resources/bootstrap.yml

@@ -1,39 +0,0 @@
-server:
-  port: 8101
-
-spring:
-  application:
-    name: wei-test
-  cloud:
-    consul:
-      # consul的IP
-      host: 192.168.11.128
-      # consul启动端口
-      port: 8500
-  profiles:
-    active: dev
-
-feign:
-  hystrix:
-    # 在feign中开启hystrix功能,默认情况下feign不开启hystrix功能
-    enabled: true
-  httpclient:
-    # 只要引入feign-httpclient包默认启用 不加此配置也可以
-    enabled: true
-
-# 配置hystrix的参数
-hystrix:
-  threadpool:
-    # default: 默认参数,作用的所有的hystrix的客户端,如果需要对某个具体的接口,可以写接口+方法名称
-    default:
-      coreSize: 500
-  command:
-    default:
-      fallback:
-        # 是否开启回退方法
-        enabled: true
-      execution:
-        isolation:
-          thread:
-            #超时时间 默认1000毫秒
-            timeoutInMilliseconds: 5000