Browse Source

[chg]删除lift-manager工程

别傲 5 years ago
parent
commit
c87c879d28

+ 0 - 52
lift-manager-service/pom.xml

@@ -1,52 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<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">
-    <parent>
-        <artifactId>lift-server</artifactId>
-        <groupId>cn.com.ty</groupId>
-        <version>1.0-SNAPSHOT</version>
-    </parent>
-    <modelVersion>4.0.0</modelVersion>
-
-    <artifactId>lift-manager-service</artifactId>
-
-    <dependencies>
-
-        <dependency>
-            <groupId>cn.com.xwy</groupId>
-            <artifactId>xwy-spring-boot</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>cn.com.ty</groupId>
-            <artifactId>lift-common</artifactId>
-            <version>1.0-SNAPSHOT</version>
-        </dependency>
-
-        <!--<dependency>
-            <groupId>cn.com.xwy</groupId>
-            <artifactId>xwy-cloud-dependencies</artifactId>
-        </dependency>-->
-
-    </dependencies>
-
-    <build>
-        <plugins>
-            <plugin>
-                <groupId>org.springframework.boot</groupId>
-                <artifactId>spring-boot-maven-plugin</artifactId>
-                <configuration>
-                    <mainClass>cn.com.ty.lift.manager.ManagerApplication</mainClass>
-                </configuration>
-                <executions>
-                    <execution>
-                        <goals>
-                            <goal>repackage</goal>
-                        </goals>
-                    </execution>
-                </executions>
-            </plugin>
-        </plugins>
-    </build>
-
-</project>

+ 0 - 24
lift-manager-service/src/main/java/cn/com/ty/lift/manager/ManagerApplication.java

@@ -1,24 +0,0 @@
-package cn.com.ty.lift.manager;
-
-import lombok.extern.slf4j.Slf4j;
-import org.mybatis.spring.annotation.MapperScan;
-import org.springframework.boot.SpringApplication;
-import org.springframework.boot.autoconfigure.SpringBootApplication;
-import org.springframework.cloud.openfeign.EnableFeignClients;
-
-/**
- * @Author xwy
- * @create 2019/11/4
- */
-@Slf4j
-@EnableFeignClients
-@MapperScan("cn.com.ty.**.dao.mapper")
-@SpringBootApplication(scanBasePackages = {"cn.com.ty.lift", "cn.com.xwy.boot"})
-public class ManagerApplication {
-
-    public static void main(String[] args) {
-        log.debug("ManagerApplication startup main");
-        SpringApplication application = new SpringApplication(ManagerApplication.class);
-        application.run(args);
-    }
-}

+ 0 - 520
lift-manager-service/src/main/java/cn/com/ty/lift/manager/framework/BusinessBasicException.java

@@ -1,520 +0,0 @@
-package cn.com.ty.lift.manager.framework;
-
-import java.io.PrintStream;
-import java.io.PrintWriter;
-
-/**
- * @author bieao
- * @date 2019/12/3 10:30 AM
- * @description 业务异常捕获
- */
-public class BusinessBasicException extends RuntimeException {
-
-    /**
-     * 错误码
-     */
-    public Integer result;
-    /**
-     * 错误描述
-     */
-    public String msg;
-    /**
-     * 错误后缀描述
-     */
-    public String suffix;
-
-    public BusinessBasicException getExceptionType(Integer status) {
-        return this;
-    }
-
-    public String addSuffix(String msg) {
-        return msg + "(" + setSuffix("") + ")";
-    }
-
-    /**
-     * Constructs a new runtime exception with {@code null} as its
-     * detail message.  The cause is not initialized, and may subsequently be
-     * initialized by a call to {@link #initCause}.
-     */
-    public BusinessBasicException() {
-        this.result = 0;
-    }
-
-    /**
-     * Constructs a new runtime exception with the specified cause and a
-     * detail message of <tt>(cause==null ? null : cause.toString())</tt>
-     * (which typically contains the class and detail message of
-     * <tt>cause</tt>).  This constructor is useful for runtime exceptions
-     * that are little more than wrappers for other throwables.
-     *
-     * @param cause the cause (which is saved for later retrieval by the
-     *              {@link #getCause()} method).  (A <tt>null</tt> value is
-     *              permitted, and indicates that the cause is nonexistent or
-     *              unknown.)
-     * @since 1.4
-     */
-    public BusinessBasicException(Throwable cause) {
-        super(cause);
-    }
-
-    /**
-     * Constructs a new runtime exception with {@code null} as its
-     * detail message.  The cause is not initialized, and may subsequently be
-     * initialized by a call to {@link #initCause}.
-     */
-    public BusinessBasicException(String msg) {
-        this.result = 0;
-        this.msg = msg;
-    }
-
-    /**
-     * Constructs a new runtime exception with {@code null} as its
-     * detail message.  The cause is not initialized, and may subsequently be
-     * initialized by a call to {@link #initCause}.
-     */
-    public BusinessBasicException(Integer result, String msg) {
-        this.msg = msg;
-        this.result = result;
-    }
-
-    /**
-     * Constructs a new runtime exception with the specified cause and a
-     * detail message of <tt>(cause==null ? null : cause.toString())</tt>
-     * (which typically contains the class and detail message of
-     * <tt>cause</tt>).  This constructor is useful for runtime exceptions
-     * that are little more than wrappers for other throwables.
-     *
-     * @param cause the cause (which is saved for later retrieval by the
-     *              {@link #getCause()} method).  (A <tt>null</tt> value is
-     *              permitted, and indicates that the cause is nonexistent or
-     *              unknown.)
-     * @since 1.4
-     */
-    public BusinessBasicException(Throwable cause, Integer result, String msg) {
-        super(cause);
-        this.msg = msg;
-        this.result = result;
-    }
-
-    /**
-     * Constructs a new runtime exception with the specified detail message.
-     * The cause is not initialized, and may subsequently be initialized by a
-     * call to {@link #initCause}.
-     *
-     * @param message the detail message. The detail message is saved for
-     *                later retrieval by the {@link #getMessage()} method.
-     */
-    public BusinessBasicException(String message, Integer result, String msg) {
-        super(message);
-        this.msg = msg;
-        this.result = result;
-    }
-
-    /**
-     * Constructs a new runtime exception with the specified detail message and
-     * cause.  <p>Note that the detail message associated with
-     * {@code cause} is <i>not</i> automatically incorporated in
-     * this runtime exception's detail message.
-     *
-     * @param message the detail message (which is saved for later retrieval
-     *                by the {@link #getMessage()} method).
-     * @param cause   the cause (which is saved for later retrieval by the
-     *                {@link #getCause()} method).  (A <tt>null</tt> value is
-     *                permitted, and indicates that the cause is nonexistent or
-     *                unknown.)
-     * @since 1.4
-     */
-    public BusinessBasicException(String message, Throwable cause, Integer result, String msg) {
-        super(message, cause);
-        this.msg = msg;
-        this.result = result;
-    }
-
-    /**
-     * Constructs a new runtime exception with the specified detail
-     * message, cause, suppression enabled or disabled, and writable
-     * stack trace enabled or disabled.
-     *
-     * @param message            the detail message.
-     * @param cause              the cause.  (A {@code null} value is permitted,
-     *                           and indicates that the cause is nonexistent or unknown.)
-     * @param enableSuppression  whether or not suppression is enabled
-     *                           or disabled
-     * @param writableStackTrace whether or not the stack trace should
-     *                           be writable
-     * @since 1.7
-     */
-    public BusinessBasicException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace, Integer result, String msg) {
-        super(message, cause, enableSuppression, writableStackTrace);
-        this.msg = msg;
-        this.result = result;
-    }
-
-    /**
-     * Fills in the execution stack trace. This method records within this
-     * {@code Throwable} object information about the current state of
-     * the stack frames for the current thread.
-     * <p>
-     * <p>If the stack trace of this {@code Throwable} {@linkplain
-     * Throwable#Throwable(String, Throwable, boolean, boolean) is not
-     * writable}, calling this method has no effect.
-     *
-     * @return a reference to this {@code Throwable} instance.
-     * @see Throwable#printStackTrace()
-     */
-    @Override
-    public synchronized Throwable fillInStackTrace() {
-        return super.fillInStackTrace();
-    }
-
-    /**
-     * Returns the cause of this throwable or {@code null} if the
-     * cause is nonexistent or unknown.  (The cause is the throwable that
-     * caused this throwable to get thrown.)
-     * <p>
-     * <p>This implementation returns the cause that was supplied via one of
-     * the constructors requiring a {@code Throwable}, or that was set after
-     * creation with the {@link #initCause(Throwable)} method.  While it is
-     * typically unnecessary to override this method, a subclass can override
-     * it to return a cause set by some other means.  This is appropriate for
-     * a "legacy chained throwable" that predates the addition of chained
-     * exceptions to {@code Throwable}.  Note that it is <i>not</i>
-     * necessary to override any of the {@code PrintStackTrace} methods,
-     * all of which invoke the {@code getCause} method to determine the
-     * cause of a throwable.
-     *
-     * @return the cause of this throwable or {@code null} if the
-     * cause is nonexistent or unknown.
-     * @since 1.4
-     */
-    @Override
-    public synchronized Throwable getCause() {
-        return super.getCause();
-    }
-
-    /**
-     * Creates a localized description of this throwable.
-     * Subclasses may override this method in order to produce a
-     * locale-specific message.  For subclasses that do not override this
-     * method, the default implementation returns the same result as
-     * {@code getMessage()}.
-     *
-     * @return The localized description of this throwable.
-     * @since JDK1.1
-     */
-    @Override
-    public String getLocalizedMessage() {
-        return super.getLocalizedMessage();
-    }
-
-    /**
-     * Returns the detail message string of this throwable.
-     *
-     * @return the detail message string of this {@code Throwable} instance
-     * (which may be {@code null}).
-     */
-    @Override
-    public String getMessage() {
-        return super.getMessage();
-    }
-
-    /**
-     * Provides programmatic access to the stack trace information printed by
-     * {@link #printStackTrace()}.  Returns an array of stack trace elements,
-     * each representing one stack frame.  The zeroth element of the array
-     * (assuming the array's length is non-zero) represents the top of the
-     * stack, which is the last method invocation in the sequence.  Typically,
-     * this is the point at which this throwable was created and thrown.
-     * The last element of the array (assuming the array's length is non-zero)
-     * represents the bottom of the stack, which is the first method invocation
-     * in the sequence.
-     * <p>
-     * <p>Some virtual machines may, under some circumstances, omit one
-     * or more stack frames from the stack trace.  In the extreme case,
-     * a virtual machine that has no stack trace information concerning
-     * this throwable is permitted to return a zero-length array from this
-     * method.  Generally speaking, the array returned by this method will
-     * contain one element for every frame that would be printed by
-     * {@code printStackTrace}.  Writes to the returned array do not
-     * affect future calls to this method.
-     *
-     * @return an array of stack trace elements representing the stack trace
-     * pertaining to this throwable.
-     * @since 1.4
-     */
-    @Override
-    public StackTraceElement[] getStackTrace() {
-        return super.getStackTrace();
-    }
-
-    /**
-     * Initializes the <i>cause</i> of this throwable to the specified value.
-     * (The cause is the throwable that caused this throwable to get thrown.)
-     * <p>
-     * <p>This method can be called at most once.  It is generally called from
-     * within the constructor, or immediately after creating the
-     * throwable.  If this throwable was created
-     * with {@link #Throwable(Throwable)} or
-     * {@link #Throwable(String, Throwable)}, this method cannot be called
-     * even once.
-     * <p>
-     * <p>An example of using this method on a legacy throwable type
-     * without other support for setting the cause is:
-     * <p>
-     * <pre>
-     * try {
-     *     lowLevelOp();
-     * } catch (LowLevelException le) {
-     *     throw (HighLevelException)
-     *           new HighLevelException().initCause(le); // Legacy constructor
-     * }
-     * </pre>
-     *
-     * @param cause the cause (which is saved for later retrieval by the
-     *              {@link #getCause()} method).  (A {@code null} value is
-     *              permitted, and indicates that the cause is nonexistent or
-     *              unknown.)
-     * @return a reference to this {@code Throwable} instance.
-     * @throws IllegalArgumentException if {@code cause} is this
-     *                                  throwable.  (A throwable cannot be its own cause.)
-     * @throws IllegalStateException    if this throwable was
-     *                                  created with {@link #Throwable(Throwable)} or
-     *                                  {@link #Throwable(String, Throwable)}, or this method has already
-     *                                  been called on this throwable.
-     * @since 1.4
-     */
-    @Override
-    public synchronized Throwable initCause(Throwable cause) {
-        return super.initCause(cause);
-    }
-
-    /**
-     * Prints this throwable and its backtrace to the
-     * standard error stream. This method prints a stack trace for this
-     * {@code Throwable} object on the error output stream that is
-     * the value of the field {@code System.err}. The first line of
-     * output contains the result of the {@link #toString()} method for
-     * this object.  Remaining lines represent data previously recorded by
-     * the method {@link #fillInStackTrace()}. The format of this
-     * information depends on the implementation, but the following
-     * example may be regarded as typical:
-     * <blockquote><pre>
-     * java.lang.NullPointerException
-     *         at MyClass.mash(MyClass.java:9)
-     *         at MyClass.crunch(MyClass.java:6)
-     *         at MyClass.main(MyClass.java:3)
-     * </pre></blockquote>
-     * This example was produced by running the program:
-     * <pre>
-     * class MyClass {
-     *     public static void main(String[] args) {
-     *         crunch(null);
-     *     }
-     *     static void crunch(int[] a) {
-     *         mash(a);
-     *     }
-     *     static void mash(int[] b) {
-     *         System.out.println(b[0]);
-     *     }
-     * }
-     * </pre>
-     * The backtrace for a throwable with an initialized, non-null cause
-     * should generally include the backtrace for the cause.  The format
-     * of this information depends on the implementation, but the following
-     * example may be regarded as typical:
-     * <pre>
-     * HighLevelException: MidLevelException: LowLevelException
-     *         at Junk.a(Junk.java:13)
-     *         at Junk.main(Junk.java:4)
-     * Caused by: MidLevelException: LowLevelException
-     *         at Junk.c(Junk.java:23)
-     *         at Junk.b(Junk.java:17)
-     *         at Junk.a(Junk.java:11)
-     *         ... 1 more
-     * Caused by: LowLevelException
-     *         at Junk.e(Junk.java:30)
-     *         at Junk.d(Junk.java:27)
-     *         at Junk.c(Junk.java:21)
-     *         ... 3 more
-     * </pre>
-     * Note the presence of lines containing the characters {@code "..."}.
-     * These lines indicate that the remainder of the stack trace for this
-     * exception matches the indicated number of frames from the bottom of the
-     * stack trace of the exception that was caused by this exception (the
-     * "enclosing" exception).  This shorthand can greatly reduce the length
-     * of the output in the common case where a wrapped exception is thrown
-     * from same method as the "causative exception" is caught.  The above
-     * example was produced by running the program:
-     * <pre>
-     * public class Junk {
-     *     public static void main(String args[]) {
-     *         try {
-     *             a();
-     *         } catch(HighLevelException e) {
-     *             e.printStackTrace();
-     *         }
-     *     }
-     *     static void a() throws HighLevelException {
-     *         try {
-     *             b();
-     *         } catch(MidLevelException e) {
-     *             throw new HighLevelException(e);
-     *         }
-     *     }
-     *     static void b() throws MidLevelException {
-     *         c();
-     *     }
-     *     static void c() throws MidLevelException {
-     *         try {
-     *             d();
-     *         } catch(LowLevelException e) {
-     *             throw new MidLevelException(e);
-     *         }
-     *     }
-     *     static void d() throws LowLevelException {
-     *        e();
-     *     }
-     *     static void e() throws LowLevelException {
-     *         throw new LowLevelException();
-     *     }
-     * }
-     *
-     * class HighLevelException extends Exception {
-     *     HighLevelException(Throwable cause) { super(cause); }
-     * }
-     *
-     * class MidLevelException extends Exception {
-     *     MidLevelException(Throwable cause)  { super(cause); }
-     * }
-     *
-     * class LowLevelException extends Exception {
-     * }
-     * </pre>
-     * As of release 7, the platform supports the notion of
-     * <i>suppressed exceptions</i> (in conjunction with the {@code
-     * try}-with-resources statement). Any exceptions that were
-     * suppressed in order to deliver an exception are printed out
-     * beneath the stack trace.  The format of this information
-     * depends on the implementation, but the following example may be
-     * regarded as typical:
-     * <p>
-     * <pre>
-     * Exception in thread "main" java.lang.Exception: Something happened
-     *  at Foo.bar(Foo.java:10)
-     *  at Foo.main(Foo.java:5)
-     *  Suppressed: Resource$CloseFailException: Resource ID = 0
-     *          at Resource.close(Resource.java:26)
-     *          at Foo.bar(Foo.java:9)
-     *          ... 1 more
-     * </pre>
-     * Note that the "... n more" notation is used on suppressed exceptions
-     * just at it is used on causes. Unlike causes, suppressed exceptions are
-     * indented beyond their "containing exceptions."
-     * <p>
-     * <p>An exception can have both a cause and one or more suppressed
-     * exceptions:
-     * <pre>
-     * Exception in thread "main" java.lang.Exception: Main block
-     *  at Foo3.main(Foo3.java:7)
-     *  Suppressed: Resource$CloseFailException: Resource ID = 2
-     *          at Resource.close(Resource.java:26)
-     *          at Foo3.main(Foo3.java:5)
-     *  Suppressed: Resource$CloseFailException: Resource ID = 1
-     *          at Resource.close(Resource.java:26)
-     *          at Foo3.main(Foo3.java:5)
-     * Caused by: java.lang.Exception: I did it
-     *  at Foo3.main(Foo3.java:8)
-     * </pre>
-     * Likewise, a suppressed exception can have a cause:
-     * <pre>
-     * Exception in thread "main" java.lang.Exception: Main block
-     *  at Foo4.main(Foo4.java:6)
-     *  Suppressed: Resource2$CloseFailException: Resource ID = 1
-     *          at Resource2.close(Resource2.java:20)
-     *          at Foo4.main(Foo4.java:5)
-     *  Caused by: java.lang.Exception: Rats, you caught me
-     *          at Resource2$CloseFailException.<init>(Resource2.java:45)
-     *          ... 2 more
-     * </pre>
-     */
-    @Override
-    public void printStackTrace() {
-        super.printStackTrace();
-    }
-
-    /**
-     * Prints this throwable and its backtrace to the specified print stream.
-     *
-     * @param s {@code PrintStream} to use for output
-     */
-    @Override
-    public void printStackTrace(PrintStream s) {
-        super.printStackTrace(s);
-    }
-
-    /**
-     * Prints this throwable and its backtrace to the specified
-     * print writer.
-     *
-     * @param s {@code PrintWriter} to use for output
-     * @since JDK1.1
-     */
-    @Override
-    public void printStackTrace(PrintWriter s) {
-        super.printStackTrace(s);
-    }
-
-    /**
-     * Sets the stack trace elements that will be returned by
-     * {@link #getStackTrace()} and printed by {@link #printStackTrace()}
-     * and related methods.
-     * <p>
-     * This method, which is designed for use by RPC frameworks and other
-     * advanced systems, allows the client to override the default
-     * stack trace that is either generated by {@link #fillInStackTrace()}
-     * when a throwable is constructed or deserialized when a throwable is
-     * read from a serialization stream.
-     * <p>
-     * <p>If the stack trace of this {@code Throwable} {@linkplain
-     * Throwable#Throwable(String, Throwable, boolean, boolean) is not
-     * writable}, calling this method has no effect other than
-     * validating its argument.
-     *
-     * @param stackTrace the stack trace elements to be associated with
-     *                   this {@code Throwable}.  The specified array is copied by this
-     *                   call; changes in the specified array after the method invocation
-     *                   returns will have no affect on this {@code Throwable}'s stack
-     *                   trace.
-     * @throws NullPointerException if {@code stackTrace} is
-     *                              {@code null} or if any of the elements of
-     *                              {@code stackTrace} are {@code null}
-     * @since 1.4
-     */
-    @Override
-    public void setStackTrace(StackTraceElement[] stackTrace) {
-        super.setStackTrace(stackTrace);
-    }
-
-    /**
-     * Returns a short description of this throwable.
-     * The result is the concatenation of:
-     * <ul>
-     * <li> the {@linkplain Class#getName() name} of the class of this object
-     * <li> ": " (a colon and a space)
-     * <li> the result of invoking this object's {@link #getLocalizedMessage}
-     * method
-     * </ul>
-     * If {@code getLocalizedMessage} returns {@code null}, then just
-     * the class name is returned.
-     *
-     * @return a string representation of this throwable.
-     */
-    @Override
-    public String toString() {
-        return super.toString();
-    }
-
-    public String setSuffix(String suffix) {
-        return suffix;
-    }
-}

+ 0 - 69
lift-manager-service/src/main/java/cn/com/ty/lift/manager/framework/aspect/ControllerAspect.java

@@ -1,69 +0,0 @@
-package cn.com.ty.lift.manager.framework.aspect;
-
-import cn.com.ty.lift.manager.framework.BusinessBasicException;
-import cn.com.xwy.boot.web.dto.RestResponse;
-import cn.hutool.json.JSONUtil;
-import lombok.extern.slf4j.Slf4j;
-import org.aspectj.lang.JoinPoint;
-import org.aspectj.lang.ProceedingJoinPoint;
-import org.aspectj.lang.annotation.*;
-import org.springframework.stereotype.Component;
-import org.springframework.web.context.request.RequestContextHolder;
-import org.springframework.web.context.request.ServletRequestAttributes;
-
-import javax.servlet.http.HttpServletRequest;
-import java.util.Arrays;
-
-/**
- * @author bieao
- * @date 2019/12/3 10:30 AM
- * @description 日志切面
- */
-@Slf4j
-@Aspect
-@Component
-public class ControllerAspect {
-
-    private static final String head = "##########|\t";
-
-    @Pointcut("execution(* cn.com.ty.lift.manager.*.controller..*(..))")
-    public void controllerPointCut() {
-    }
-
-    @Before("controllerPointCut()")
-    public void doBefore(JoinPoint joinPoint) throws Throwable {
-        // Receives the request and get request content
-        ServletRequestAttributes attributes = (ServletRequestAttributes) RequestContextHolder.getRequestAttributes();
-        HttpServletRequest request = attributes.getRequest();
-
-        log.info(head + "URL : " + request.getRequestURL().toString());
-        log.info(head + "HTTP_METHOD : " + request.getMethod());
-        log.info(head + "IP : " + request.getRemoteAddr());
-        log.info(head + "CLASS_METHOD : " + joinPoint.getSignature().getDeclaringTypeName() + "." + joinPoint.getSignature().getName());
-        log.info(head + "ARGS : " + Arrays.toString(joinPoint.getArgs()));
-
-    }
-
-    @AfterReturning(returning = "response", pointcut = "controllerPointCut()")
-    public void doAfterReturning(RestResponse response) throws Throwable {
-        // Processes the request and returns the content
-        log.info(head + "RESPONSE : " + JSONUtil.parse(response));
-        log.info("====================================================");
-    }
-
-    @AfterThrowing(throwing = "ex", pointcut = "controllerPointCut()")
-    public void doAfterThrowing(BusinessBasicException ex) throws Throwable {
-        final String msg = ex.getMessage();
-        // Processes the request and returns the content
-        log.info(head + "RESPONSE : " +  ex.addSuffix(msg).replace("()", ""));
-        log.info("====================================================");
-    }
-
-
-    @Around("controllerPointCut()")
-    public Object interceptor(ProceedingJoinPoint proceedingJoinPoint) throws Throwable {
-        log.info("====================================================");
-        return proceedingJoinPoint.proceed();
-    }
-
-}

+ 0 - 60
lift-manager-service/src/main/java/cn/com/ty/lift/manager/framework/util/MessageUtils.java

@@ -1,60 +0,0 @@
-package cn.com.ty.lift.manager.framework.util;
-
-import lombok.extern.slf4j.Slf4j;
-import org.springframework.util.StringUtils;
-
-import java.text.MessageFormat;
-import java.util.*;
-
-/**
- * @author bieao
- * @description 消息工具类
- * @date 2019/12/3 11:02 AM
- */
-@Slf4j
-public final class MessageUtils {
-
-    /**
-     *  Message 格式化工具
-     */
-    public final static MessageFormat FORMAT = new MessageFormat("");
-    /**
-     * Message cache 中文
-     */
-    public final static Map<String, String> MESSAGE_CACHE_CHMAP = new HashMap<>();
-
-
-    static {
-        //Load Business Message
-        Locale.setDefault(new Locale("zh", "CN"));
-        ResourceBundle rb = ResourceBundle.getBundle("locale/response");
-        Set<String> keySet = rb.keySet();
-        for (String keyStr : keySet) {
-            MESSAGE_CACHE_CHMAP.put(keyStr, rb.getString(keyStr));
-        }
-    }
-
-    /**
-     * @param key message.properties 存在的key
-     * @date 2019/12/3 11:02 AM
-     * @description 获取il8n下存在的value
-     */
-    public static String get(String key) {
-        return get(key, (String[]) null);
-    }
-
-    /**
-     * @param key  message.properties 存在的key
-     * @param arg0 填充参数
-     * @date 2019/12/3 11:02 AM
-     * @description 获取il8n下存在的携带参数的value
-     */
-    public static String get(String key, String... arg0) {
-        String message = MESSAGE_CACHE_CHMAP.get(key);
-        log.info("####| 获取配置文件:{},值:{}", key, message);
-        if (StringUtils.isEmpty(message)) return "{}";
-        FORMAT.applyPattern(message);
-        return FORMAT.format(arg0);
-    }
-
-}

+ 0 - 24
lift-manager-service/src/main/resources/bootstrap.yml

@@ -1,24 +0,0 @@
-spring:
-  cloud:
-    config:
-      fail-fast: true
-      discovery:
-        service-id: lift-config-server
-        enabled: true
-      name: portal
-      profile: ${spring.profiles.active}
-      failFast: true
-      retry:
-        multipliter: 1000
-        initial-interval: 1.2
-        max-interval: 2000
-        max-attempts: 6
-eureka:
-  instance:
-    prefer-ip-address: true
-    lease-renewal-interval-in-seconds: 5
-    lease-expiration-duration-in-seconds: 20
-  client:
-    service-url:
-      defaultZone: http://localhost:10225/eureka/
-

+ 0 - 6
lift-manager-service/src/main/resources/locale/response.properties

@@ -1,6 +0,0 @@
-msg.data.empty=\u6682\u65E0\u6570\u636E
-msg.query.success=\u67E5\u8BE2\u5217\u8868\u6210\u529F
-msg.add.success=\u65B0\u589E\u6210\u529F
-msg.add.fail=\u65B0\u589E\u5931\u8D25
-msg.modify.success=\u4FEE\u6539\u6210\u529F
-msg.modify.fail=\u4FEE\u6539\u5931\u8D25

+ 0 - 135
lift-manager-service/src/main/resources/logback-spring.xml

@@ -1,135 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<configuration
-        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-        xsi:noNamespaceSchemaLocation="http://www.padual.com/java/logback.xsd"
-        debug="false" scan="true" scanPeriod="30 second">
-
-    <property name="PROJECT" value="lift-manager" />
-    <property name="ROOT" value="logs/${PROJECT}/" />
-    <property name="FILESIZE" value="50MB" />
-    <property name="MAXHISTORY" value="100" />
-    <timestamp key="DATETIME" datePattern="yyyy-MM-dd HH:mm:ss" />
-    <!-- 控制台打印 -->
-    <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
-        <encoder charset="utf-8">
-            <pattern>[%-5level] %d{${DATETIME}} [%thread] %logger{36} - %m%n
-            </pattern>
-        </encoder>
-    </appender>
-    <!-- ERROR 输入到文件,按日期和文件大小 -->
-    <appender name="ERROR" class="ch.qos.logback.core.rolling.RollingFileAppender">
-        <encoder charset="utf-8">
-            <pattern>[%-5level] %d{${DATETIME}} [%thread] %logger{36} - %m%n
-            </pattern>
-        </encoder>
-        <filter class="ch.qos.logback.classic.filter.LevelFilter">
-            <level>ERROR</level>
-            <onMatch>ACCEPT</onMatch>
-            <onMismatch>DENY</onMismatch>
-        </filter>
-        <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
-            <fileNamePattern>${ROOT}%d/error.%i.log</fileNamePattern>
-            <maxHistory>${MAXHISTORY}</maxHistory>
-            <timeBasedFileNamingAndTriggeringPolicy
-                    class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
-                <maxFileSize>${FILESIZE}</maxFileSize>
-            </timeBasedFileNamingAndTriggeringPolicy>
-        </rollingPolicy>
-    </appender>
-
-    <!-- WARN 输入到文件,按日期和文件大小 -->
-    <appender name="WARN" class="ch.qos.logback.core.rolling.RollingFileAppender">
-        <encoder charset="utf-8">
-            <pattern>[%-5level] %d{${DATETIME}} [%thread] %logger{36} - %m%n
-            </pattern>
-        </encoder>
-        <filter class="ch.qos.logback.classic.filter.LevelFilter">
-            <level>WARN</level>
-            <onMatch>ACCEPT</onMatch>
-            <onMismatch>DENY</onMismatch>
-        </filter>
-        <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
-            <fileNamePattern>${ROOT}%d/warn.%i.log</fileNamePattern>
-            <maxHistory>${MAXHISTORY}</maxHistory>
-            <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
-                <maxFileSize>${FILESIZE}</maxFileSize>
-            </timeBasedFileNamingAndTriggeringPolicy>
-        </rollingPolicy>
-    </appender>
-
-    <!-- INFO 输入到文件,按日期和文件大小 -->
-    <appender name="INFO" class="ch.qos.logback.core.rolling.RollingFileAppender">
-        <encoder charset="utf-8">
-            <pattern>[%-5level] %d{${DATETIME}} [%thread] %logger{36} - %m%n
-            </pattern>
-        </encoder>
-        <filter class="ch.qos.logback.classic.filter.LevelFilter">
-            <level>INFO</level>
-            <onMatch>ACCEPT</onMatch>
-            <onMismatch>DENY</onMismatch>
-        </filter>
-        <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
-            <fileNamePattern>${ROOT}%d/info.%i.log</fileNamePattern>
-            <maxHistory>${MAXHISTORY}</maxHistory>
-            <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
-                <maxFileSize>${FILESIZE}</maxFileSize>
-            </timeBasedFileNamingAndTriggeringPolicy>
-        </rollingPolicy>
-    </appender>
-    <!-- DEBUG 输入到文件,按日期和文件大小 -->
-    <appender name="DEBUG" class="ch.qos.logback.core.rolling.RollingFileAppender">
-        <encoder charset="utf-8">
-            <pattern>[%-5level] %d{${DATETIME}} [%thread] %logger{36} - %m%n
-            </pattern>
-        </encoder>
-        <filter class="ch.qos.logback.classic.filter.LevelFilter">
-            <level>DEBUG</level>
-            <onMatch>ACCEPT</onMatch>
-            <onMismatch>DENY</onMismatch>
-        </filter>
-        <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
-            <fileNamePattern>${ROOT}%d/debug.%i.log</fileNamePattern>
-            <maxHistory>${MAXHISTORY}</maxHistory>
-            <timeBasedFileNamingAndTriggeringPolicy
-                    class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
-                <maxFileSize>${FILESIZE}</maxFileSize>
-            </timeBasedFileNamingAndTriggeringPolicy>
-        </rollingPolicy>
-    </appender>
-    <!-- TRACE 输入到文件,按日期和文件大小 -->
-    <appender name="TRACE" class="ch.qos.logback.core.rolling.RollingFileAppender">
-        <encoder charset="utf-8">
-            <pattern>[%-5level] %d{${DATETIME}} [%thread] %logger{36} - %m%n
-            </pattern>
-        </encoder>
-        <filter class="ch.qos.logback.classic.filter.LevelFilter">
-            <level>TRACE</level>
-            <onMatch>ACCEPT</onMatch>
-            <onMismatch>DENY</onMismatch>
-        </filter>
-        <rollingPolicy
-                class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
-            <fileNamePattern>${ROOT}%d/trace.%i.log</fileNamePattern>
-            <maxHistory>${MAXHISTORY}</maxHistory>
-            <timeBasedFileNamingAndTriggeringPolicy
-                    class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
-                <maxFileSize>${FILESIZE}</maxFileSize>
-            </timeBasedFileNamingAndTriggeringPolicy>
-        </rollingPolicy>
-    </appender>
-
-    <!-- SQL相关日志输出-->
-    <logger name="org.apache.ibatis" level="INFO" additivity="true" />
-    <logger name="org.mybatis.spring" level="INFO" additivity="false" />
-    <logger name="com.github.miemiedev.mybatis.paginator" level="INFO" additivity="false" />
-
-    <!-- Logger 根目录 -->
-    <root level="INFO">
-        <appender-ref ref="STDOUT" />
-        <appender-ref ref="DEBUG" />
-        <appender-ref ref="ERROR" />
-        <appender-ref ref="WARN" />
-        <appender-ref ref="INFO" />
-        <appender-ref ref="TRACE" />
-    </root>
-</configuration>