package com.gblfy.distributedlimiter.controller;import com.gblfy.distributedlimiter.enums.ServiceErrCode;import com.gblfy.distributedlimiter.exception.BaseServiceException;import org.springframework.web.bind.annotation.GetMapping;import org.springframework.web.bind.annotation.RestController;@RestController
public class SentinelLimiterController {@GetMapping("/excepton")public void exceptonHandle(){//如果超过流控管理的就抛出异常throw new BaseServiceException(ServiceErrCode.REQ_PARAM_ERR.getMsg(), ServiceErrCode.REQ_PARAM_ERR);}}
运算符 public class Demo01 {public static void main(String[] args) {// 二元运算符// Ctrl D : 复制当前行到下一行int a 10;int b 20;int c 25;int d 25;System.out.println(ab);System.out.println(a-b);System.out.println(a*b);System.out.println(a/(double)b); …
问题再现: 控制台最后会显示Application启动失败,如下:
...***************************
APPLICATION FAILED TO START
***************************Description:The Tomcat connector configured to listen on port 8080 failed to start. …