摘要: 阅读全文
posted @ 2022-03-15 22:11 花心大萝卜li 阅读(10) 评论(0) 推荐(0)
摘要: 类加载过程 1.loading(加载到内存) 2linking 1Verification(校验:这个class符不符合class文件标准CAFFEEBABE) 2Preparation(把class 静态变量附默认值,不是赋初值 例如:int i=8,并不是直接赋值成8 而是先赋值为0 ) 3Re 阅读全文
posted @ 2022-03-15 21:36 花心大萝卜li 阅读(68) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2022-03-15 17:30 花心大萝卜li 阅读(45) 评论(0) 推荐(0)
摘要: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <dependency> <groupId>com.alib 阅读全文
posted @ 2022-03-15 16:33 花心大萝卜li 阅读(51) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2022-03-15 13:43 花心大萝卜li 阅读(41) 评论(0) 推荐(0)
摘要: 上述URL请求中带有索引为0的参数hot1在1秒内超过1次访问,就会限制访问,但是访问页面报500错误,页面提示信息不友好,为了解决这一问题,在sentinelResource注解中添加blockHanlder参数,指定出现异常所跳转的页面 可以有效的减少访问热点商品的访问次数,避免服务器压力过大 阅读全文
posted @ 2022-03-15 10:56 花心大萝卜li 阅读(137) 评论(0) 推荐(0)