多租户商城-代码生成器
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
673 B

2 years ago
  1. package ${packageBase}.config;
  2. import com.zkthink.boot.handler.DefaultGlobalExceptionHandler;
  3. import org.springframework.context.annotation.Configuration;
  4. import org.springframework.stereotype.Controller;
  5. import org.springframework.web.bind.annotation.ControllerAdvice;
  6. import org.springframework.web.bind.annotation.ResponseBody;
  7. import org.springframework.web.bind.annotation.RestController;
  8. /**
  9. * ${description}-全局异常处理
  10. *
  11. * @author ${author}
  12. * @date ${date}
  13. */
  14. @Configuration
  15. @ControllerAdvice(annotations = {RestController.class, Controller.class})
  16. @ResponseBody
  17. public class ${service}ExceptionConfiguration extends DefaultGlobalExceptionHandler {
  18. }