From e4c9245c2625168e5ebdcd7d03e81410033394de Mon Sep 17 00:00:00 2001 From: lvmoney Date: Fri, 28 Jun 2019 11:52:55 +0800 Subject: [PATCH] dcoker readme.md --- frame-common/pom.xml | 5 ---- .../common/exceptions/package-info.java | 23 ------------------- .../web/FrameExceptionHandlerAdvice.java | 16 ------------- .../src/main/resources/readme.md | 3 +++ 4 files changed, 3 insertions(+), 44 deletions(-) delete mode 100644 frame-common/src/main/java/com/lvmoney/common/exceptions/package-info.java create mode 100644 frame-k8s-support/frame-docker-support/src/main/resources/readme.md diff --git a/frame-common/pom.xml b/frame-common/pom.xml index f04373f..493032a 100644 --- a/frame-common/pom.xml +++ b/frame-common/pom.xml @@ -37,11 +37,6 @@ com.fasterxml.jackson.core jackson-databind - - org.apache.shiro - shiro-spring - - com.google.zxing core diff --git a/frame-common/src/main/java/com/lvmoney/common/exceptions/package-info.java b/frame-common/src/main/java/com/lvmoney/common/exceptions/package-info.java deleted file mode 100644 index 3505d21..0000000 --- a/frame-common/src/main/java/com/lvmoney/common/exceptions/package-info.java +++ /dev/null @@ -1,23 +0,0 @@ -/** - * 描述: - * 包名:com.lvmoney.common.exceptions - * 版本信息: 版本1.0 - * 日期:2019年1月3日 下午1:40:59 - * Copyright xxxx科技有限公司 - * - * @describe: - * @author: lvmoney /xxxx科技有限公司 - * @version:v1.0 2019年1月3日 下午1:40:59 - * @describe: - * @author: lvmoney /xxxx科技有限公司 - * @version:v1.0 2019年1月3日 下午1:40:59 - */ - -/** - * @describe: - * @author: lvmoney /xxxx科技有限公司 - * @version:v1.0 - * 2019年1月3日 下午1:40:59 - */ - -package com.lvmoney.common.exceptions; \ No newline at end of file diff --git a/frame-common/src/main/java/com/lvmoney/common/web/FrameExceptionHandlerAdvice.java b/frame-common/src/main/java/com/lvmoney/common/web/FrameExceptionHandlerAdvice.java index 0c4fa5d..cee6f69 100644 --- a/frame-common/src/main/java/com/lvmoney/common/web/FrameExceptionHandlerAdvice.java +++ b/frame-common/src/main/java/com/lvmoney/common/web/FrameExceptionHandlerAdvice.java @@ -6,14 +6,11 @@ import com.lvmoney.common.utils.ResultUtil; import com.lvmoney.common.utils.vo.ResultData; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; -import org.apache.shiro.authz.AuthorizationException; -import org.apache.shiro.authz.UnauthorizedException; import org.springframework.validation.BindException; import org.springframework.validation.FieldError; import org.springframework.web.bind.annotation.ControllerAdvice; import org.springframework.web.bind.annotation.ExceptionHandler; import org.springframework.web.bind.annotation.RestControllerAdvice; - import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.util.ArrayList; @@ -62,17 +59,4 @@ public class FrameExceptionHandlerAdvice { } return ResultUtil.error(4041, "请求参数错误", excepitonVos); } - - //拦截未授权页面 - @ExceptionHandler(UnauthorizedException.class) - public ResultData handleException(UnauthorizedException e) { - logger.debug(e.getMessage()); - return ResultUtil.error(403, "shiro UnauthorizedException"); - } - - @ExceptionHandler(AuthorizationException.class) - public ResultData handleException2(AuthorizationException e) { - logger.debug(e.getMessage()); - return ResultUtil.error(403, "shiro AuthorizationException"); - } } diff --git a/frame-k8s-support/frame-docker-support/src/main/resources/readme.md b/frame-k8s-support/frame-docker-support/src/main/resources/readme.md new file mode 100644 index 0000000..bb022fd --- /dev/null +++ b/frame-k8s-support/frame-docker-support/src/main/resources/readme.md @@ -0,0 +1,3 @@ +1、安装docker,并安装docker私服,并运行提交到私服 +2、修改application里面对应docker相关的配置 +3、执行mvn clean package命令就会提交到docker私服中 \ No newline at end of file -- Gitee