java
回眸。等待
这个作者很懒,什么都没留下…
展开
-
nginx、kong网关、lua学习笔记--基础了解和一些常用知识、网站
1.Nginx、OpenRestry、Kong、lua紧密相连:Nginx是模块化设计的反向代理软件,C语言开发;OpenResty是以Nginx为核心的Web开发平台,可以解析执行Lua脚本;Kong是一个OpenResty应用,一个api gateway。Lua是一个脚本语言。2.nginx相关Nginx有很多的module,在Nginx Documents中可以查看每个modules的用法。Nginx: Alphabetical index of directives 中列出了Ngi原创 2021-06-27 11:17:24 · 553 阅读 · 0 评论 -
com.alibaba.fastjson.JSONException: syntax error, expect {, actual [, pos 0, fastjson-version 1.2.62
报这个错误的原因是因为使用FastJsonUtils.convertJsonToObject进行转换的时候放入的值是一个集合(list),而取得时候确实对象。String str = (String) redisTemplate.opsForValue().get("categoriesList");jsonBean.setData(FastJsonUtils.convertJsonToObj...原创 2020-04-29 16:25:26 · 5599 阅读 · 0 评论 -
redisTemplate传入,键前面有一段乱码
1.使用redisTemplate传值的时候发现键前面增加了一段乱码,我们可以使用以下方式来解决增加配置类,目标对象实现序列化接口(implements Serializable)package com.xja.udai.product.common;import com.fasterxml.jackson.annotation.JsonAutoDetect;import com.fas...原创 2020-04-29 16:05:02 · 875 阅读 · 0 评论 -
Failed to introspect annotated methods on class
org.springframework.beans.factory.BeanDefinitionStoreException: Failed to process import candidates for configuration class [com.xja.udai.customer.UdaiCustomerApplication]; nested exception is java.la...原创 2020-04-27 21:14:48 · 8093 阅读 · 0 评论 -
com.mysql.jdbc.exceptions.jdbc4.CommunicationsException:Communications link failure
1.记录一次粗心错误造成Communications link failure原因localhost写错了!!!!localhost记录我的查找流程1.用Springboot测试mapper文件,连接数据库,然后。。。翻到最后一行未知localhsot…2.修改后测试成功...原创 2020-04-21 20:53:32 · 511 阅读 · 0 评论 -
多线程面试题总结
1. 线程挂起 (suspend)和继续执行(resume)(被弃用)不推荐使用suspend()去挂起线程的原因,是因为suspend()在导致线程暂停的同时,并不会去释放任何锁资源。此时,其他任何线程想要访问被它暂用的锁时,都会被牵连,导致无法正常继续运行(如图所示)。直到对应的线程上进行了resume()操作,被挂起的线程才能继续,从而其他阻塞在相关锁上的线程也可以继续执行。但是,如果re...原创 2020-04-15 19:44:18 · 435 阅读 · 0 评论 -
记录一次Centos7安装rabbitMq时流程及出现的错误
1.下载Erlangwget -P /home/download https://github.com/rabbitmq/erlang-rpm/releases/download/v21.2.3/erlang-21.2.3-1.el7.centos.x86_64.rpm(如遇下载不了参考链接: https://download.csdn.net/download/qq_40209717/12...原创 2020-04-11 17:08:56 · 402 阅读 · 0 评论 -
java.lang.NoSuchMethodError: org.springframework.util.Assert.notNull(Ljava/lang/Object;Ljava/util/fu
java.lang.NoSuchMethodError: org.springframework.util.Assert.notNull(Ljava/lang/Object;Ljava/util/fu原因:版本不匹配。参考链接:https://www.cnblogs.com/zjulanjian/p/11088754.html...原创 2019-11-09 12:25:37 · 617 阅读 · 0 评论 -
关于使用ideal 出现Could not get JDBC Connection问题
关于使用ideal 出现Could not get JDBC Connection问题org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is java.sql.SQLException: Cannot load JDBC driver...原创 2019-11-09 11:23:31 · 1070 阅读 · 0 评论 -
关于数组的取值,cannot read property 'uid' of undefined
如图:console.log("uid==="+userList[i].uid);打印出数据了,但下面字符串拼接时却报uid不认识。原因:for循环没有写循环条件。。。。。或者没有数组越界。参考地址:https://blog.csdn.net/u012118993/article/details/70792534...原创 2019-11-08 18:19:17 · 3102 阅读 · 0 评论 -
java基础总结
java基础首先从流程控制讲起,我们常用的流程控制有If..else switch for while for(int a: arr)输出与输入输出:System.out.print(); 快捷键 syso (Alt+/)输入:Scanner input = new...原创 2019-09-17 22:39:48 · 374 阅读 · 0 评论