is

Caused by: java.sql.SQLException: Parameter index out of range (2 > number of parameters, which is 1).

一、问题背景 在xml配置中自定义了sql语句 二、报错截图如下 三、我的项目配置如下 四、分析问题 五、问题原因 在xml中自定义sql语句时,里面不能有注释过得sql 六、解决方式 https://thinkingcao.blog.csdn.net/article/details/1038159 ......

python中的is语句

前置知识:python中,boolean,string,tuple,int,float属于不可变类型,set,dictiry,list属于可变类型 is()方法用于判定两个数据的值是否相同。 对于不可变类型,值相同,说明数据相同 对于可变类型,值相同,并不代表数据本身相同,这是由于所占用的内存地址不 ......
语句 python

【THM】What is Networking?(什么是网络?)-学习

本文相关的TryHackMe实验房间链接:https://tryhackme.com/room/whatisnetworking 本文相关内容:学习一些关于计算机网络的基础知识。 简介 网络是连接在一起的东西,例如,你的朋友圈:你们都因为相似的兴趣、爱好、技能和类型而联系在一起。 网络可以在各行各业 ......
Networking 网络 What THM is

kubernetes failed to create kubelet: misconfiguration: kubelet cgroup driver: "cgroupfs" is different from docker cgroup driver: "systemd"

错误原因 kubernetes 的文件驱动与 docker 不一致,导致镜像无法启动。 docker info 可以看到驱动方式 Cgroup Driver: systemd。 解决方案 统一资源管理,一致使用 systemd 或者 cgroupfs。 在 Linux 上,控制组(CGroup)用于 ......
quot kubelet cgroup driver misconfiguration

虚拟机报错:AVD xxx is already running.If that is not the case, delete the files

试过很多方法,文件删除后,加载仍然出这个错误。 我之后又想想,再添加一个虚拟机怎样,添加后运行便可以了。 ......
the already running delete files

What is static and dynamic libraries

What is static and dynamic libraries 他们有什么相同点吗? 都是库文件。对于调用库文件的使用者来说,不管是静态库还是动态库,调用的方式都是一样的,没什么区别。 Differences between static and dynamic libraries 动态库 ......
libraries dynamic static What and

Why is redux state immutable???

众所周知, redux的三项原则之一有 state is read-only, 即immutable. 为了保证immutable, 所以每次reducer都要return一个new object, 作为新的state. 但为什么state一定要是immutable呢? 换言之, 为什么不能直接修改 ......
immutable redux state Why is

Uncaught ReferenceError: bobj is not defined

创建好的水晶报表,报表没有生成。 查看html代码,数据库的数据已经获取...按F12:出现如标题错误。 看到此异常,想起来,是因为做少了一件事,即是需要把: C:\inetpub\wwwroot\ 的aspnet_client目录,完整拷贝至项目之下。 ......
ReferenceError Uncaught defined bobj not

Node Sass version 8.0.0 is incompatible with ^4.0.0.

这是因为当前版本与4.0.0不兼容 卸载当前版本sass: npm uninstall node-sass 安装指定版本sass: npm install node-sass@4.14.1 参考这里 https://www.cnblogs.com/lisir-blogshare/p/15439088 ......
incompatible version Node Sass with

oracle学习之路(5)Navicat连接Oracle数据库:Oracle library is not loaded 解决方案

Navicat连接Oracle数据库报错:Oracle library is not loaded 原因:这是因为OCI环境配置有问题,需要修改 oci.dll 文件路径。版本不一致 是oci.dll版本不对。因为Navicat是通过Oracle客户端连接Oracle服务器的,Oracle的客户端分 ......

typescript 提示 Object is possibly ‘null‘ 的N种解决方法

用watch监听某个一个数组数据,获取其length时,提示Object is possibly ‘null‘ .具体如下: 解决方法如下:就是加null的判断 typescript 提示 Object is possibly ‘null‘ 的N种解决方法 解决方案一 最正确的解决方案,就是加nul ......
typescript possibly 方法 Object null

MinIO上传文件The difference between the request time and the server's time is too large.异常

问题 向MinIO上传文件时,抛出异常:The difference between the request time and the server‘s time is too large. 使用date命令修改CentOS时间后,异常依然存在。 相关Linux命令 查看系统时间:date 查看硬件 ......
time difference the between request

Is It A Tree? HDU - 1325 (有向图判断是否是树)

题意:有向图判断是否是树。 树是一种众所周知的数据结构,它要么是空的,要么是一组由足以下条件的节点之间的定向边连接的一个或多个节点。 正好有一个节点,称为根,没有定向边指向该节点。 除了根节点外,每个节点都有一条指向它的边。 从根到每个节点都有一个唯一的有向边序列。 分析:对于一棵非空树,有如下性质 ......
有向图 1325 Tree HDU Is

uniapp 页面跳转时 redirectTo:fail page '/pages/index/pages/index/login' is not found

uniapp 跳转页面有以下两种,分清楚情况写 url 才能正确跳转: 绝对路径跳转; 相对路径跳转。 :one: 绝对路径跳转: 绝对路径跳转必须要是这样的格式 /pages/xxx/xxx,pages 前面必须要有 /,代表 src 目录。 :two: 相对路径跳转: 相对路径跳转不带 /,是以 ......
index pages redirectTo 页面 uniapp

出现(.toFixed is not a function)原因及解决方法

toFixed() 方法可把 Number 四舍五入为指定小数位数的数字。 解决 :toFixed只能针对Number类型才能使用,所以对于字符类型的要用parseFloat或者parseInt函数先转一下再调用 ......
function 原因 toFixed 方法 not

使用echarts防止出现“There is a chart instance already initialized on the dom.”的警告

var myChart; function historyMapInit(query_date) { //防止出现“There is a chart instance already initialized on the dom.”的警告 //在使用echarts发现需要及时对新建的myChart实 ......
initialized instance echarts already There

python的浅拷贝和深拷贝& is 和==的区别

一、python中变量的赋值 python中的数据类型分为可变数据类型(字符串、数值、布尔型)、不可变数据类型(列表、字典、集合)。 不可变数据类型的赋值,都只是对象的引用,不会开辟新的内存空间;可变数值类型的赋值,则会开辟新的内存空间。如果可变数据类型中包含有不可变数据类型,则可变数据类型部分也不 ......
拷贝 python amp is

docker进行run镜像的时候提示:IPv4 forwarding is disabled. Networking will not work. 解决方法

1、当你使用docker容器的时候有可能出现以下情况:IPv4转发已禁用。网络是行不通的。是因为IPv4转发被禁用了,只需要开启就可以了。 [root@zheng prometheus]# docker run -d -p 9090:9090 -v /opt/prometheus/prometheu ......
Networking forwarding disabled 镜像 时候

Required request body is missing: 前端接口报错错误解决

前几天遇到一个报错:Required request body is missing; 经过检查是因为在传递参数时使用params来传递的。 而使用params来传递参数会被拼接到url上不管是get还是post请求,这时候请求体也就是body是不存在的。 所有后端在获取参数时会报request b ......
前端 Required 接口 错误 request

Linux中使用yum安装服务时会报:Existing lock /var/run/yum.pid: another copy is running as pid 3263.:解决方法

报错信息: 在下载服务时,不会显示正常的安装步骤,而是显示以上报错。 报错原因: 1、是因为yum已经在后台运行了,导致进程僵死。 解决方法: 1、把/var/run/yum.pid文件给删掉就好了。 执行命令: [root@k8s-master ~]# rm -rf /var/run/yum.pi ......
yum pid Existing another running

attention is all you need --->> transform

经典图: 复现的github链接 https://github.com/jadore801120/attention-is-all-you-need-pytorch 注释的代码全集: https://download.csdn.net/download/yang332233/87602895 /at ......
attention transform gt need all

【docker】解决报错 WARNING: IPv4 forwarding is disabled. Networking will not work.

https://blog.csdn.net/weixin_68100450/article/details/126054580 一,docker 运行直接报错报错: [root@localhost /]# docker run -it ubuntu /bin/bash WARNING: IPv4 f ......

java - idea编译输出缺失导致 The output path is not specified for module XXX - 解决

进入setting设置项,搜索 Java Compiler 添加项目模块后,设置jdk版本,然后确定即可 ......
缺失 specified output module java

5.运行项目连接Mysql时出现警告Establishing SSL connection without server‘s identity verification is not recommende

jdbc:mysql://localhost:3306/testdb?useSSL=false 添加上述加粗部分,即可解决该警告,标红参数前面为你数据库连接URL,如果有多个参数记得用&连接,例如 jdbc:mysql://localhost:3306/testdb?characterEncodin ......

react+echarts出现“There is a chart instance already initialized on the dom.”

写了一个关于echatrs组件,报错dom重复 配置信息从props拿 let chart; useEffect(() => { if (chart) { updateChartView(); }else{ chart = echarts.init(dom.current) updateChartV ......
initialized instance echarts already react

若依微服务连接redis 一段时间报错,后来改成连接池后也是报错 Redis command timed out; nested exception is io.lettuce.core.RedisCommandTimeoutException: Command timed out after 10 second(s)

springBoot版本是2.x 所以呢redis客户端是lettuce,而不是jedis; lettuce支持异步,而且是线程安全的。 jedis是同步的,线程不安全需要每个线程一个Jedis实例,所以一般通过连接池来使用Jedis。 我这里用的是lettuce连接池的配置还是报错了呢: spri ......

4-springboot多数据源配置报错Cause: java.lang.IllegalArgumentException: jdbcUrl is required with driverClassName

springboot2.0版本以上的多数据源配置改成: spring.datasource.refunddb.url=jdbc:mysql://refund地址spring.datasource.refunddb.username=uatspring.datasource.refunddb.pass ......

3-springboot编译报错Relying upon circular references is discouraged and they are prohibited by default

如果是.properties文件,在文件中添加 spring.main.allow-circular-references=true 如果是.yml文件,则在文件中添加 spring: main: allow-circular-references:true文章参考:https://blog.csd ......

Logstash could not be started because there is already another instance using the configured data directory

#执行报错[root@logstash-95 ~]# logstash -f /etc/logstash/conf.d/stdin-test.conf Using bundled JDK: /usr/share/logstash/jdk OpenJDK 64-Bit Server VM warnin ......