自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(143)
  • 资源 (8)
  • 收藏
  • 关注

原创 【素材】小说-森林名称

4、神狱森林,噬魂林,沉星雨林,醉晚林,暗月幽林,隐雾森林,星语森林,龙魂森林。1、迷雾森林,幻影森林,流萤森林,赤魂森林,炼狱森林,幽暗森林。2、落日之森,万灵森林,断魂森林,月光森林,幻灭森林,魔渊森林。3、遗忘之林,静谧之森,枫林,红林,梦幻之森,幻暮森林,枯木林。

2024-03-27 10:28:53 211

原创 @ConditionalOnProperty 注解的四个属性解释

ConditionalOnProperty 它主要是通过自身的两个属性来控制自动配置是否生效,这两个属性分别是name、havingValue。只有当配置文件(application.properties或者bootstrap.yml)中和name相同的属性的值和注解上havingValue的值相同时,该配置文件才会生效。:值如果一样才会生效,这里false和true不一样,所以不生效。如果找不到配置项,是否生效。

2023-10-11 09:51:46 946

原创 【C语言】14、通过键盘输入项数,计算“1+3+5+...+N”的值并进行输出,输出式举例如下:输入“11”,输出“第11 项为 21,1+3+5+...+21=121”。

【代码】【C语言】14、通过键盘输入项数,计算“1+3+5+...+N”的值并进行输出,输出式举例如下:输入“11”,输出“第11 项为 21,1+3+5+...+21=121”。

2022-12-09 19:23:54 708 1

原创 【com.getui.push.v2.sdk.common.ApiException: 获取token失败: timestamp is invalid】

com.getui.push.v2.sdk.common.ApiException: 获取token失败: timestamp is invalid今天又发现一个奇怪的问题。本地IDEA和Jar都可以运行,但在服务器上会报错,然后重启后,Jar都启动不起来,报一样的问题。原因:服务器与真实事件相差了超过10分钟,修改服务器的时间为正确时间,然后启动,就成功了

2022-12-03 19:08:36 2521

原创 【Vue】Reached heap limit Allocation failed - JavaScript heap out of memory

就可以了 2000 的数字根据自己需要的内存大小可以设置,但注意,如果太高也会报错,我的电脑设置成4000就会提示,发生错误。

2022-12-02 12:42:44 3324

原创 【Error: error:0308010C:digital envelope routines::unsupported】

据说是因为Node.js版本是17以上所以会运行失败。如图所示:有个package,打开他。先执行如下命令(但我电脑不行)新建一个标签:输入指令。后来发现不是这么弄的。

2022-11-03 11:00:50 3780 14

原创 【Gitblit-IDEA】将现有项目设置为上传到Gitblit

【代码】【Gitblit-IDEA】将现有项目设置为上传到Gitblit。

2022-10-24 16:13:12 725

原创 【Oralce】导出所有表名、表注释、主键

【代码】【Oralce】导出所有表名、表注释、主键。

2022-10-20 10:22:08 685

原创 HttpClient设置超时时间无效

一开始设置了超时时间但怎么设置都没有效果后来加上了下面一行就可以了,因为并不是连接超时,而是因为的确连接上了,但对方一直没有给返回信息,所以要等很久,现在设置了 就可以在连接上的情况下,把连接信息中断掉。...

2022-07-08 13:15:20 1417

原创 IDEA启动Tomcat报404

这个页面右键他会自动生成个名字,如果是这个就成功了,重新启动

2022-07-07 15:38:06 645

原创 SpringBoot整合RabbitMQ报错 Execution of Rabbit message listener failed.Listener threw exception

Execution of Rabbit message listener failed.Listener threw exception@Compomentpublic class Consumer { @RabbitHandler @RabbitListener(queues = {"QUEUE"}) public void receiveMessage(String message){ System.out.println("接收到的消息是 -&

2022-05-20 23:37:03 808 1

原创 【Expected one result (or null) to be returned by selectOne(), but found: 10】

Expected one result (or null) to be returned by selectOne(), but found: 10用的是对象接受了一页的数据,而不是用数组,所以会报应该只有一条结果但找到了10条改成下面一条User getList(Request request);List<User> getList(Request request);...

2022-04-20 09:42:24 1187

原创 【java.sql.SQLException: Listener refused the connection with the following error: ORA-12505, TNS:li】

java.sql.SQLException: Listener refused the connection with the following error:ORA-12505, TNS:listener does not currently know of SID given in connect descriptor数据库SID错误// 2、设置数据源 DataSourceConfig dsc = new DataSourceConfig(); dsc..

2022-04-20 08:58:14 1299

原创 【介绍一下几种 IO 模型】

I/O英文全称是Input/Output翻译过来就是输入/输出计算机角度的IO涉及计算机核心与其他设备间数据迁移的过程,就是IO磁盘IO,就是从磁盘读取数据到内存,这算一次输入将内存中的数据写入磁盘,就算输出。这就是IO的本质操作系统的IO其实IO就是把进程的内部数据转移到外部设备,或者把外部设备的数据迁移到进程内部。外部设备一般指硬盘、socket通讯的网卡。一个完整的IO过程包括以下几个步骤:应用程序进程向操作系统发起IO调用请求操作系统准备数据,把IO外部设备的数据,

2022-04-19 23:11:13 427

原创 【什么是隐式转换,什么是显式转换】

显示转换就是类型强转,把一个大类型的数据强制赋值给小类型的数据;隐式转换就是大范围的变量能够接受小范围的数据;隐式转换和显式转换其实就是自动类型转换和强制类型转换

2022-04-19 21:00:21 253

原创 【什么是B/S架构?什么是C/S架构】

B/S(Browser/Server)浏览器/服务器程序C/S(Client/Server)客户端/服务端桌面应用程序

2022-04-19 20:43:31 248

原创 【重写和重载的区别是什么】

定义不同重载:定义相同的方法名,参数不同public class void hello(){ system.out.print("Hello!");}public class void hello(String name){ system.out.print("Hello!" + name);}public class void hello(List<String> names){ for(String name : names){ system.out.print("

2022-04-18 23:25:16 248

原创 【short s1 = 1; s1 = s1 + 1;有错吗? short s1 = 1; s1 += 1; 有错吗?】

Java基本数据类型转换规则:大数据类型 ==>> 小数据类型 需要强制转换小数据类型 ==>> 大数据类型 自动装换赋值表达式规则:左侧 = 右侧右侧的要向左侧看齐右侧表达式要转换到和左侧一致第一题short s1 = 1; s1 = s1 + 1;错误!!!s1是short类型,1是int类型s1转换为int类型和1相加后得到int类型的2,需要强制转换才能向左侧看齐short s1 = 1; s1 = (short) (s1 + 1);第二题

2022-04-18 23:12:42 1537

原创 【MySQL什么时候适合建索引,什么时候不适合建索引】

适合主键作为自动建立唯一索引频繁作为查询条件的字段应该创建索引查询中与其他表关联的字段,外键关系建立索引单键/组合索引的选择问题,组合索引性价比更高

2022-04-18 21:32:48 505

原创 【Redis持久化有几种类型,区别?】

两种类型RDB(Redis DataBase)AOF(Append Of File)

2022-04-18 20:07:39 451

原创 【git分支相关命令】

创建分支git branch <分支名>git branch -v查看分支切换分支git checkout <分支名>一步完成:git checkout -b <分支名>(创建一个分支并跳过去)合并分支先切换到主干 git checkout master

2022-04-18 19:57:48 89

原创 【Linux系统 常用服务类相关命令】

service(centos6)注册在系统中的标准化程序有方便统一的管理方式(常用方法)启动:service 服务名 start停止:service 服务名 stop重启:service 服务名 restart重新加载:service 服务名 reload查看状态:service 服务名 status查看服务的方法 /etc/init.d/服务名通过chkconfig命令设置自启动查看服务 chkconfig --list|grep xxx设置自启动级别chkconfig --leve

2022-04-18 18:13:02 512

原创 【MyBatis中当实体类中的属性和表中的字段名不一样】

1、写sql语句时写别名 <select id="getUserInfoById" resultType="com.system.user"> select id, username as userName, password from user where id = #{id} </select>2、

2022-04-17 22:32:09 183

原创 【有n步台阶,一次只能上1步或2步,共有多少种走法?】

1、递归 public static int f(int n){ if (n < 1){ throw new IllegalArgumentException(n + "不能小于1"); } if (n == 1 || n == 2){ return n; } return f(n-2) + f (n-1); }2、循环迭代 public st

2022-04-16 23:41:31 1425

原创 【Java方法的重写 Override】

1、哪些方法不可以重写?final方法静态方法private等子类中不可见方法2、对象的多态性子类如果重写了父类的方法,通过子类对象调用的一定是子类重写过的代码非静态类方法默认的调用对象是thisthis对象在构造器或者说<init>方法中就是正在创建的对象...

2022-04-16 20:43:12 186

原创 JavaSE面试 - 单例设计模式

懒汉式:延迟创建这个实例对象(1)构造器私有化(2)用一个静态变量保存这个唯一实例(3)提供一个静态方法,获取这个实例对象线程不安全public class Singleton { private static Singleton instance; private Singleton(){ } public static Singleton getInstance(){ if(instance == null){ instance = new Singlenton();

2022-04-15 22:59:52 150

原创 org.springframework.jdbc.UncategorizedSQLException: Error attempting to get column ‘lastModified‘ fr

org.springframework.jdbc.UncategorizedSQLException: Error attempting to get column 'lastModified' from result set. Cause: java.sql.SQLException: 请求的转换无效; uncategorized SQLException; SQL state [99999]; error code [17132]; 请求的转换无效; nested exception is java

2022-04-13 15:06:41 2783

原创 后端接口本地和内网可以PostMan跑通,线上报404

项目的前端是通过Nginx部署的。在本地的时候Post一个/pic/getCarPic开头的接口不通。结果发现Nginx配置文件中有个 location/pic 把接口转发走了,把 /pic/后面的 getCarPic变成了一个图片地址,在页面打开,报Nginx的404。这种情况只能加一个接口的请求地址:@RequestMapping({"/pic/getCarPic","/carPic/getCarPic"})server { listen 8080; root /data/

2022-04-11 22:57:59 1425

原创 o.s.b.web.embedded.tomcat.TomcatStarter : Error starting Tomcat context. Exception: org.springframe

2022-04-09 16:10:50.834 ERROR 116080 --- [ main] o.s.b.web.embedded.tomcat.TomcatStarter : Error starting Tomcat context. Exception: org.springframework.beans.factory.UnsatisfiedDependencyException. Message: Error creating bean with name 'securi

2022-04-09 16:16:30 6465 2

原创 MyBatis+Oracle 从不同表中查找数据合并成一张表

定义一个SQL片段。unionListView,第一个<include refid="outTable"/>为第一张表第二个<include refid="inTable"/>为第二张表 <sql id="unionListView"> (<include refid="outTable"/> UNION ALL <include refid="inTable"/>) </sql&

2022-03-12 22:11:18 1581

原创 SQL ORACLE 提示 in 中超过 1000 “java.sql.SQLException: ORA-01795: 列表中的最大表达式数为 1000”

“java.sql.SQLException: ORA-01795: 列表中的最大表达式数为 1000”第一种方法:大致意思:把超过900条拆开,index是当前第几个数,除900取余数899,不就是第899次吗,就分开成两个 in 就行了,下次到899就在拆分一次,and (USER.UNIT_ID in<foreach collection="queryIds" index="index" item="item" open="(" close=")" separator=",">

2022-02-10 15:20:13 1303

原创 IDEA 安装插件导致 IDEA闪退

2021.3版本第一应该会有报错弹窗,后面都没有。1、打开如下文件查看报错的插件2、找到对应的插件删掉,我这里已经删过了。

2022-02-08 13:50:49 1220

原创 【无标题】Error while adding the mapper ‘interface com.gk.modules.roadTrad.mapper.RoadClosureMapper‘ to c

Error while adding the mapper ‘interface com.gk.modules.roadTrad.mapper.RoadClosureMapper’ to configuration.Could not resolve type alias ‘RoadClosure’实体类起别名,结果无法识别,改成全路径就可以了

2022-01-27 12:20:05 997

原创 SpringBoot:pom 导入不了 json-lib

不要被提示骗了!!!一定要加<classifier>jdk15</classifier>他虽然提示里找不到,但重新加载一下pom,他就加载进来了 <!--json-lib--> <dependency> <groupId>net.sf.json-lib</groupId> <artifactId>json-lib</artifactId> <version>2.4&

2022-01-19 20:58:47 348

原创 Duplicate entry ‘1‘ for key ‘user.PRIMARY‘

org.springframework.dao.DuplicateKeyException:Error updating database. Cause: java.sql.SQLIntegrityConstraintViolationException: Duplicate entry ‘1’ for key ‘user.PRIMARY’Error updating database. Cause: java.sql.SQLIntegrityConstraintViolationException

2022-01-18 21:37:30 2277

原创 Error building SqlSession

Caused by: org.apache.ibatis.exceptions.PersistenceException:Error building SqlSession.The error may exist in com/atguigu/dao/TeacherMapper.xmlCause: org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: java.lang.Il

2022-01-16 23:41:23 258

原创 mybatis-config.xml configuration 报错

The content of element type “configuration” must match “(properties?,settings?,typeAliases?,typeHandlers?,objectFactory?,objectWrapperFactory?,reflectorFactory?,plugins?,environments?,databaseIdProvider?,mappers?)”.这是因为在这个标签里面,你的子标签,必须按照图中的顺序来摆放...

2022-01-08 20:44:30 196

原创 org.apache.ibatis.exceptions.PersistenceException: ### Error querying database. Cause: java.sql.SQ

org.apache.ibatis.exceptions.PersistenceException: ### Error querying database. Cause: java.sql.SQLException: The server time zone value '�й���׼ʱ��' is unrecognized or represents more than one time zone. You must configure either the server or JDBC drive

2022-01-05 23:00:16 2683

原创 Loading class `com.mysql.jdbc.Driver‘. This is deprecated. The new driver class is `com.mysql.cj.jdb

Loading class `com.mysql.jdbc.Driver'. This is deprecated. The new driver class is `com.mysql.cj.jdbc.Driver'. The driver is automatically registered via the SPI and manual loading of the driver class is generally unnecessary.错误的写成应该改为com.mysql.cj.jdbc

2022-01-05 22:58:51 534

原创 java.lang.NullPointerException: Cannot invoke “org.apache.ibatis.session.SqlSessionFactory.openSessi

java.lang.NullPointerException: Cannot invoke "org.apache.ibatis.session.SqlSessionFactory.openSession()" because "com.atguigu.utils.MybatisUtils.sqlSessionFactory" is null错误的创建了新的SqlSessionFactory

2022-01-05 22:55:36 2223

chromedriver_96.0.4664.45.exe

chromedriver_96.0.4664.45.exe

2021-11-20

【VSCode】VSCodeSetup-x64-1.62.0.exe

【VSCode】VSCodeSetup-x64-1.62.0.exe

2021-11-10

【喜马拉雅】Ximalaya-B-2.1.1.exe

【喜马拉雅】Ximalaya-B-2.1.1.exe

2021-11-10

【MinGW安装包】mingw-18.0.exe

【MinGW安装包】mingw-18.0.exe

2021-11-10

【jar包下载】log4j-core-2.11.2

log4j-core-2.11.2.jar

2021-11-10

【jar包下载】spring-expression-5.2.6.RELEASE.jar

spring-expression-5.2.6.RELEASE.jar

2021-11-10

【jar包下载】spring-core-5.2.6.RELEASE.jar

spring-core-5.2.6.RELEASE.jar

2021-11-10

【jar包下载】spring-context-5.2.6.RELEASE.jar

spring-context-5.2.6.RELEASE.jar

2021-11-10

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除