zhaoyiran
8 months ago
8 changed files with 15 additions and 15 deletions
@ -1,4 +1,4 @@ |
|||
package com.win.qad; |
|||
package com.win.bank; |
|||
|
|||
import org.springframework.boot.SpringApplication; |
|||
import org.springframework.boot.autoconfigure.SpringBootApplication; |
@ -1,9 +1,9 @@ |
|||
package com.win.qad.common; |
|||
package com.win.bank.common; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonIgnore; |
|||
import com.win.qad.exception.ErrorCode; |
|||
import com.win.qad.exception.GlobalErrorCodeConstants; |
|||
import com.win.qad.exception.ServiceException; |
|||
import com.win.bank.exception.ErrorCode; |
|||
import com.win.bank.exception.GlobalErrorCodeConstants; |
|||
import com.win.bank.exception.ServiceException; |
|||
import lombok.Data; |
|||
import org.springframework.util.Assert; |
|||
|
@ -1,4 +1,4 @@ |
|||
package com.win.qad.config; |
|||
package com.win.bank.config; |
|||
|
|||
import org.springframework.context.annotation.Bean; |
|||
import org.springframework.context.annotation.Configuration; |
@ -1,4 +1,4 @@ |
|||
package com.win.qad.exception; |
|||
package com.win.bank.exception; |
|||
|
|||
import lombok.Data; |
|||
|
@ -1,4 +1,4 @@ |
|||
package com.win.qad.exception; |
|||
package com.win.bank.exception; |
|||
|
|||
/** |
|||
* 全局错误码枚举 |
@ -1,4 +1,4 @@ |
|||
package com.win.qad.exception; |
|||
package com.win.bank.exception; |
|||
|
|||
import lombok.Data; |
|||
import lombok.EqualsAndHashCode; |
@ -1,4 +1,4 @@ |
|||
package com.win.qad.exception; |
|||
package com.win.bank.exception; |
|||
|
|||
import lombok.Data; |
|||
import lombok.EqualsAndHashCode; |
@ -1,15 +1,15 @@ |
|||
package com.win.qad.handler; |
|||
package com.win.bank.handler; |
|||
|
|||
import com.win.qad.common.CommonResult; |
|||
import com.win.qad.exception.ServiceException; |
|||
import com.win.bank.common.CommonResult; |
|||
import com.win.bank.exception.ServiceException; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.springframework.web.bind.annotation.ExceptionHandler; |
|||
import org.springframework.web.bind.annotation.RestControllerAdvice; |
|||
|
|||
import javax.servlet.http.HttpServletRequest; |
|||
|
|||
import static com.win.qad.exception.GlobalErrorCodeConstants.INTERFACE_ERROR; |
|||
import static com.win.qad.exception.GlobalErrorCodeConstants.INTERNAL_SERVER_ERROR; |
|||
import static com.win.bank.exception.GlobalErrorCodeConstants.INTERFACE_ERROR; |
|||
import static com.win.bank.exception.GlobalErrorCodeConstants.INTERNAL_SERVER_ERROR; |
|||
|
|||
/** |
|||
* 全局异常处理器,将 Exception 翻译成 CommonResult + 对应的异常编号 |
Loading…
Reference in new issue