摘要: 转自:Vue使用组件的3种方式 TODO... 阅读全文
posted @ 2022-06-10 14:25 飞_2016 阅读(15) 评论(0) 推荐(0) 编辑
摘要: Get(同Delete) Post(同Put) form-data x-www-form-urlencoded row RestTemplate默认遇到非200的请求会抛出异常,如果不需要抛出异常,可以通过自定义Bean package com.test.config; import org.spr 阅读全文
posted @ 2022-06-10 14:15 飞_2016 阅读(25) 评论(0) 推荐(0) 编辑
摘要: 索引 普通索引 Index(xx) 或者 key(xx) MySQL中基本索引类型,没有什么限制,允许在定义索引的列中插入重复值和空值,纯粹为了查询数据更快一点。 唯一索引 UNIQUE INDEX UniqIdx(xx) 索引列中的值必须是唯一的,但是允许为空值 主键索引 PRIMARY KEY( 阅读全文
posted @ 2020-08-25 11:54 飞_2016 阅读(247) 评论(0) 推荐(0) 编辑
摘要: 代码 package test; import java.util.concurrent.CompletableFuture; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; pu 阅读全文
posted @ 2020-08-22 21:56 飞_2016 阅读(175) 评论(0) 推荐(0) 编辑
摘要: 原文链接 说到线程,一定要谈到线程状态,不同的状态说明线程正处于不同的工作机制下,不同的工作机制下某些动作可能对线程产生不同的影响。 Java语言定义了6中状态,而同一时刻,线程有且仅有其中的一种状态。要获取Java线程的状态可以使用 java.lang.Thread类中定义的 getState() 阅读全文
posted @ 2020-08-22 21:55 飞_2016 阅读(251) 评论(0) 推荐(0) 编辑
摘要: 源码 参考: How to Write a Custom Protocol for Gatling? Creating a custom Gatling prococol for AWS Lambda 插件开发 Action package io.gatling.ext.redis.action i 阅读全文
posted @ 2020-08-22 21:55 飞_2016 阅读(554) 评论(0) 推荐(0) 编辑
摘要: 同步异步、阻塞非阻塞 同步与异步 同步和异步关注的是消息通信机制; 同步:一个调用得到结果之前不会返回,调用者需要等待调用的结果; 异步:调用发出后直接返回,不等待结果,结果需要被调用者通过某种方式通知调用者; 阻塞与非阻塞 阻塞和非阻塞关注的是程序在等待调用结果(消息,返回值)时的状态; 阻塞:调 阅读全文
posted @ 2020-08-04 16:59 飞_2016 阅读(404) 评论(0) 推荐(0) 编辑
摘要: 官网: https://www.rabbitmq.com/download.html https://www.rabbitmq.com/install-rpm.html Installing the package using Yum repositories on Package Cloud or 阅读全文
posted @ 2020-08-04 15:46 飞_2016 阅读(145) 评论(0) 推荐(0) 编辑
摘要: flag package main import ( "flag" "github.com/kataras/iris/v12" ) // 需要配合 flag.Parse() 使用 var port = flag.String("port", "8080", "The address to liste 阅读全文
posted @ 2020-07-21 15:03 飞_2016 阅读(144) 评论(0) 推荐(0) 编辑
摘要: Allure 官网 allure-commandline下载地址(下载后bin目录加入PATH中) demo 命令 $ allure --version # 生成报告(自动在浏览器中打开) $ allure serve /home/path/to/project/target/surefire-re 阅读全文
posted @ 2020-07-14 17:36 飞_2016 阅读(838) 评论(0) 推荐(0) 编辑