Tag:Leave to

  • Laravel creates an exception handling response format suitable for API

    Time:2021-6-20

    After laravel catches the exception globally, it will convert the exception into the corresponding data format and return it to the user. If you want the specified data format to be appropriate, we just need to rewrite the handling method after exception capture. Exception handling process Illuminate\Foundation\Exception\HandlerThe render method in is used to convert an […]

  • Spring cloud plug in principle

    Time:2021-3-30

    The article was first published inCSDN personal blog 1、 Plug in overview Plug in positioning The spring cloud plug-in is a forward proxy plug-in for spring cloud. All spring cloud requests are processed by the plug-in for load balancing. Effective time When the request header’s rpctype = springcloud and the plug-in is enabled, it will […]