- 博客(141)
- 收藏
- 关注
原创 PersistentVolumeClaims和PersistentVolumes
PersistentVolumeClaims和PersistentVolumes的区别
2023-02-22 18:15:13
461
原创 E: The repository ‘http://security.ubuntu.com/ubuntu hirsute-security Release‘ no longer has a Relea
E: The repository 'http://security.ubuntu.com/ubuntu hirsute-security Release' no longer has a Release file.
2022-10-15 18:57:03
1094
原创 org.redisson.client.RedisConnectionClosedException: succesfully sent, but channel has been closed!
redis 的间隙过长,导致连接关闭
2022-09-22 19:10:17
2159
原创 RESOURCE_EXHAUSTED: etcdserver: mvcc: database space exceeded
etcd满了,空间不足的解决方法
2022-08-09 11:04:59
636
原创 Axios文件下载流转
做一个记录https://icode.best/i/67478738808307https://www.i4k.xyz/article/qq_43743661/115939750https://blog.youkuaiyun.com/lihefei_coder/article/details/106917795本质考察HTTP的知识点http中返回的数据类型是在Content-Type中声明的针对不同的类型进行转换axios也就是自己底层根据入参做了对返回结果的封装...
2022-05-23 19:04:47
235
原创 quartz的cron表达式校验,展示近10条时间
public class CronExprUtil { private CronExprUtil() { throw new IllegalStateException("CronExprUtil class"); } /** * @param cron cron 表达式 * @Description: 校验cron 表达式格式是否正确 * @return: true/false */ public static bo
2022-05-19 14:21:31
696
转载 ES多桶排序
类似terms、histogram、date_histogram这类桶聚合都会动态生成多个桶,如果生成的桶特别多,我们如何确定这些桶的排序顺序,如何限制返回桶的数量ES桶聚合支持两种方式排序:内置排内置排序参数:_count - 按文档数排序。对 terms 、 histogram 、 date_histogram 有效_term - 按词项的字符串值的字母顺序排序。只在 terms 内使用_key - 按每个桶的键值数值排序, 仅对 histogram 和 date_histogram
2022-04-24 18:06:50
1455
原创 SpringMVC文件下载IE乱码
public static void download(HttpServletRequest request, HttpServletResponse response, File file, String fileName) { log.info("下载文件path=[{}],name=[{}]", file.getAbsoluteFile(), fileName); if (StringUtils.isNotBlank(fileName)) { //设置文件路径 .
2022-04-12 19:44:26
448
原创 MybatisPlus 自定义TypeHandler映射JSON类型为List
示例自定义映射处理类@MappedTypes({List.class})@MappedJdbcTypes({JdbcType.VARCHAR})public abstract class ListJsonTypeHandler<T> extends BaseTypeHandler<List<T>> { /** * 具体类型,由子类提供 * * @return 具体类型 */ protected abstra
2022-03-25 16:41:43
2412
5
原创 aspose.words生成pdf字体乱码为方框
描述利用aspose.words生成pdf文档发现生成文档字体乱码<dependency> <groupId>aspose.words</groupId> <artifactId>words-pdf</artifactId> <version>18.10-SNAPSHOT</version></dependency>解决原因并不是pdf乱码,乱码的化会是一堆??,方框是因为li
2022-03-24 16:09:03
4244
3
原创 K8S CronJobs创建
fabric8代码创建apiVersion: batch/v1kind: CronJobmetadata: name: hellospec: schedule: "* * * * *" jobTemplate: spec: template: spec: containers: - name: hello image: busybox imagePullPolicy
2022-03-04 17:53:26
520
原创 K8S Jobs创建
fabric8代码创建Map<String, String> labels = new LinkedHashMap<>();labels.put(SPIDER_GROUP_ID, spiderGroupId);labels.put(APP_NAME, "job-spider-worker");//TODO 参考buildContainer,构建Deployment的容器参数Container container = buildContainer(new SpiderGro
2022-03-04 17:42:35
795
原创 python、java RSA公私钥加密解密
java RSA私钥加密、解密public static final String RSA = "RSA";public static final String RSA_ECB_NO_PADDING = "RSA/ECB/PKCS1Padding";public static final String AES_ECB_PKCS_5_PADDING = "AES/ECB/PKCS5Padding";public static final String AES = "AES";public stat
2022-01-12 14:01:07
1275
原创 zuul网关RSA签名,AES加密
请求request处理代码只支持get,post链接https://blog.youkuaiyun.com/whatzhang007/article/details/122451527@Slf4j@Componentpublic class RequestParamsFilter extends ZuulFilter { public static final String T_KEY = "t"; public static final String S_KEY = "s"; @V
2022-01-12 13:54:26
536
1
原创 Java RSA、AES加解密,Python RSA、AES加解密
需求python服务发起加密http请求网关,网关验签解密后路由返回加密结果,python服务解密得到明文请求加密生成随机字符 s,[a-z][A-z][0-9] 16位 ,例如:s=2zQ6EldkFtqfVm1T生成当前时间戳毫秒数(unix 时间戳)t,例如:t=1641784404645生成一个待加密字符串k:s=2zQ6EldkFtqfVm1T&t=1641784404645使用公钥加密生成密文(RSA/ECB/PKCS1Padding)m:m=RSA(公钥,k)将生成的时
2022-01-12 13:37:24
970
原创 nacos服务com.alibaba.nacos.client.naming - out of date data received, old-t......
问题原因:Nacos集群,时钟不一致,查看本地和Nacos集群时a
2022-01-11 14:55:34
13231
5
原创 podname用作为环境变量
yaml示例apiVersion: v1kind: Podmetadata: name: dapi-envars-fieldrefspec: containers: - name: test-container image: k8s.gcr.io/busybox command: [ "sh", "-c"] args: - while true; do echo -en '\n'; printen
2022-01-04 15:30:43
1154
原创 zuul的超时配置探究
路由分类serviceId路由,指的是ribbon负载均衡路由routes: commandKey: path: /uri serviceId: service-id主要核心逻辑在RibbonRoutingFilter类里,如下这里的RibbonCommandFactory实现类有好几种,默认为HttpClientRibbonCommandFactory一路下跟最后核心,也就是设置超时时间的核心逻辑url路由,不经过ribbonroutes:
2021-12-06 10:27:38
3671
1
原创 Git 指南
常见的 Git 指南attributes 定义每个路径的属性cli Git 命令行界面和约定core-tutorial 面向开发人员的 Git 核心教程cvs-migration CVS 用户的 Gitdiffcore 调整差异输出everyday 日常 Git 的一组有用的最小命令faq 使用 Git
2021-12-02 18:07:17
199
原创 GraphQL IntrospectionQuery查询
curlcurl --location --request GET 'http://127.0.0.1:9999/graphql' \--header 'Content-Type: application/json' \--data-raw '{"query":"query IntrospectionQuery {\n __schema {\n queryType {\n name\n }\n mutationType {\n name\n }\n
2021-11-26 11:42:56
591
原创 java.sql.SQLException: Can‘t open file: ‘./dd@aa/table.frm‘ (errno: 24 - Too many files being open)
说明Errno: 24表示给定进程打开的文件太多。有一个只读的 mysql 变量叫做‘ open_files_limit’,它会显示 mysqld 允许打开多少个文件,错误原因就在于打开文件超过限制了,根据现有情况适当提高文件限制解决查看系统设置的限制数SHOW VARIABLES LIKE 'open_files_limit';查看目前打开数SHOW GLOBAL STATUS LIKE 'Open_files';设置限制数SET GLOBAL open_files_limit =
2021-11-25 10:26:47
1255
原创 小米10 Ultra版的120W充电器,充 MacBookPro可以吗
答案:可以楼主已经用了一年了,没什么问题唯一区别是mac 充电器是87w,小米充电器实际功率是64w,主要看个人使用电脑习惯了
2021-11-21 16:15:34
7803
转载 开源GraphQL API图形界面
Official APIsAPIDescriptionGraphiQLDocs/RepoAniListAnime and manga datum, including character, staff, and live airing data.Try it!DocsArtsyfree online platform for collecting and discovering artTry it!RepoBitqueryon-chain blockcha
2021-11-19 15:33:43
374
转载 graphql开发示例
https://github.com/chentsulin/awesome-graphql/blob/master/README.md里面有各种语言对graphql的开发框架和示例比如java:Table of ContentsSpecificationsFoundationsCommunitiesMeetupsImplementationsJavaScript/TypeScriptJavaScript ExamplesTypeScript ExamplesRuby
2021-11-19 14:21:04
1147
原创 graphql-java文档
<dependency> <groupId>com.graphql-java</groupId> <artifactId>graphql-java</artifactId> <version>17.3</version> </dependency>https://www.graphql-java.com/documentation/schemaGetting started
2021-11-19 13:34:41
487
原创 Graphql fetching data异常处理
异常类型 graphql.ExceptionWhileDataFetchingpublic class SimpleDataFetcherExceptionHandler implements DataFetcherExceptionHandler { private static final Logger log = LoggerFactory.getLogger(SimpleDataFetcherExceptionHandler.class); @Override publi
2021-11-19 11:42:45
2470
原创 HystrixTimeout设置小记
源码如下,看完包会protected static HystrixCommandProperties.Setter createSetter(IClientConfig config, String commandKey, ZuulProperties zuulProperties) { //获取HystrixTimeout,设置HystrixCommand的Setter int hystrixTimeout = getHystrixTimeout(config, commandKey); r
2021-11-11 11:30:47
417
原创 Pod的状态
Pod 一共有 5 种状态,这个状态反映在 Pod 的 status 属性中Pending:这个状态意味着,Pod 的 YAML 文件已经提交给了 Kubernetes,API 对象已经被创建并保存在 Etcd 当中。但是这个 Pod 还没有被调度成功,最常见的原因比如 Pod 中某个容器启动不成功Running:这个状态下,Pod 已经调度成功。也就是它包含的容器都已经创建成功,并且至少有一个正在运行中Succeeded:这个状态意味着,Pod 里的所有容器都正常运行成功并退出了。这种情况在运行一
2021-11-03 16:04:46
7531
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人