Browse Source

update

main
wangshaoping 6 months ago
parent
commit
716df6df89
  1. 4
      gradle.properties
  2. 7
      io.sc.platform.core/src/main/java/io/sc/platform/core/bean/GlobalExceptionHandler.java
  3. 6
      io.sc.platform.gradle/templates/pgp/setup/gradle.properties

4
gradle.properties

@ -36,8 +36,8 @@ application_version=1.0.0
# platform # platform
########################################################### ###########################################################
platform_group=io.sc platform_group=io.sc
platform_version=8.1.46 platform_version=8.1.47
platform_plugin_version=8.1.46 platform_plugin_version=8.1.47
platform_core_frontend_version=8.1.308 platform_core_frontend_version=8.1.308
########################################################### ###########################################################

7
io.sc.platform.core/src/main/java/io/sc/platform/core/bean/GlobalExceptionHandler.java

@ -1,9 +1,6 @@
package io.sc.platform.core.bean; package io.sc.platform.core.bean;
import io.sc.platform.core.response.ErrorResponseWrapper; import io.sc.platform.core.response.*;
import io.sc.platform.core.response.ResponseWrapper;
import io.sc.platform.core.response.ResponseWrapperBuilder;
import io.sc.platform.core.response.ValidateException;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import org.springframework.http.HttpStatus; import org.springframework.http.HttpStatus;
@ -13,6 +10,7 @@ import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.ResponseStatus; import org.springframework.web.bind.annotation.ResponseStatus;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
import java.util.List;
/** /**
@ -26,6 +24,7 @@ public class GlobalExceptionHandler {
@ExceptionHandler(value =Exception.class) @ExceptionHandler(value =Exception.class)
@ResponseStatus(HttpStatus.INTERNAL_SERVER_ERROR) @ResponseStatus(HttpStatus.INTERNAL_SERVER_ERROR)
@ResponseBody @ResponseBody
@SuppressWarnings("unchecked")
public ResponseWrapper exceptionHandler(Exception e){ public ResponseWrapper exceptionHandler(Exception e){
log.error("",e); log.error("",e);
if(e instanceof ValidateException){ if(e instanceof ValidateException){

6
io.sc.platform.gradle/templates/pgp/setup/gradle.properties

@ -36,9 +36,9 @@ application_version=1.0.0
# platform # platform
########################################################### ###########################################################
platform_group=io.sc platform_group=io.sc
platform_version=8.1.46 platform_version=8.1.47
platform_plugin_version=8.1.46 platform_plugin_version=8.1.47
platform_core_frontend_version=8.1.302 platform_core_frontend_version=8.1.308
########################################################### ###########################################################
# dependencies version # dependencies version

Loading…
Cancel
Save