• 2024-08-30MyBatis启动报Cause: org.apache.ibatis.builder.BuilderException: Error resolving class. Cause: org.apach
    mybatis-plus:**#搜索指定包别名,对指定报名下的所有实体进行Alias,就可以在mapper.xml中使用alias来设置parameterType参数**typeAliasesPackage:com.rcs.**.domain**#配置mapper的扫描,找到所有的mapper.xml映射文件,对该目录下的所有mapper.xml进行扫描装入Mappers
  • 2024-08-10【Spring-RabbitMq】设置消费重试次数
    引言在我们实际项目中需要对消息消费的高可用做保证,首先需要做到的就是消息的重试机制,设想一下以下场景:当库存服务处理上游服务发过来的订单消息时,此时服务宕机了,或者网络不可用了,那我这个消息是应该算消费成功还是消费失败呢?显然,我们肯定要对处理不成功的消息进行重试
  • 2024-08-09五,搭建环境:辅助功能
    五,搭建环境:辅助功能@目录五,搭建环境:辅助功能编写登录失败异常编写常量类MD5工具(加密工具类)日志配置文件编写登录失败异常我们在demo-module04-util模块下,创建一个名为:com.rainbowsea.imperial.court.exception的包下,创建一个名为:LoginFailedException的异常类——>作
  • 2024-08-06SciTech-Mathematics-Probability+Statistics-Causation vs. Correlation: From Correlation to Causation:
    https://www.statology.org/from-correlation-to-causation-deep-dive-into-data-interpretation/FromCorrelationtoCausation:DeepDiveintoDataInterpretationCorrelationandCausationarekeyconceptsindataanalysis.However,correlationdoesn'tme
  • 2024-08-01《DNK210使用指南 -CanMV版 V1.0》第十六章 machine模块实验
    第十六章machine模块实验1)实验平台:正点原子DNK210开发板2)章节摘自【正点原子】DNK210使用指南-CanMV版V1.03)购买链接:https://detail.tmall.com/item.htm?&id=7828013987504)全套实验源码+手册+视频下载地址:http://www.openedv.com/docs/boards/k210/ATK-DNK210.html5)正点
  • 2024-05-22[ES2024] Improve Application-wide Error Handling rethrowing JavaScript Error with the Error Cause
    Thenew cause datapropertythatyoucanaddtoathrown Error canbeusedtoretainaccesstotheoriginalerrorcaughtinapromiserejection. constsendLog=(...args)=>console.log(...args);asyncfunctionfetchStuff(){awaitfetch('h
  • 2024-04-24解决 java 实体中用 LocalDateTime 在转换时候报错 Error attempting to get column ‘XXX’ from result set. Cause: java
    java中的实体类用到了LocalDateTime类型。在转换时候报错Errorattemptingtogetcolumn‘XXX’fromresultset.Cause:java.sql.解决方法最为简单。是因为com.alibaba的版本问题。切换版本号到1.1.22即可消除问题<dependency><groupId>com.alibaba</gro
  • 2024-04-01Day28 异常
    Day28异常一、概念异常是程序在运行期发生的不正常的事件,它会打断指令的正常执行流程。设计良好的程序应该在异常发生时提供处理这些不正常事件的方法,使程序不会因为异常的发生而阻断或产生不可预见的结果。注意:Java语言使用异常处理机制为程序提供了异常处理的能力。
  • 2024-04-01System.gc 之后到底发生了什么 ?
    本文基于OpenJDK17进行讨论在JDKNIO针对堆外内存的分配场景中,我们经常会看到System.gc的身影,比如当我们通过FileChannel#map对文件进行内存映射的时候,如果JVM进程虚拟内存空间中的虚拟内存不足,JVM在native层就会抛出OutOfMemoryError。当JDK捕获到OutOfMem
  • 2024-01-23ERROR:Only one ConfirmCallback is supported by each RabbitTemplate] with root cause —— RabbitMQ
     错误:OnlyoneConfirmCallbackissupportedbyeachRabbitTemplate]withrootcause 原因:因为Spring的Bean默认都是单例;而RabbitTemplate对象同样支持一个回调。 解决:使用@Scope("prototype")可通知Spring将被注解的Bean变为多例。代码: //改Ra
  • 2024-01-17jmeter安装成功后打不开,提示:Cause: CannotResolveClassException: com.blazemeter.jmeter.threads.concurrency.Conc
    下载安装Jmeter,环境变量也配置完成了,打开Jmeter脚本报错,提示:Cause:CannotResolveClassException:com.blazemeter.jmeter.threads.concurrency.ConcurrencyThreadGroup解决办法:1.可以试着下载安装Jmeter插件管理器,https://jmeter-plugins.org/install/Install/ 2.把步骤1中
  • 2024-01-13Introducing the incident management
    ForwardToday,wetalkaboutthesignificanceofincidentmanagement.Firstly,westartitbysomesimpleconcepts. Whatexactlytheincidentis?Orwhatisissusemanagementandproblemmanagement?Whyitissoimportant?Whatwecando?Whatweshould
  • 2023-11-04Indoor air pollution
     Around4.2millionpeopledieprematurelyduetoindoorairpollution,accordingtotheWorldHealthOrganization.Indoorairpollutionisabigproblemindevelopingcountries,wherepeopleoftenburnwood,coal,dung,orothersolidfuelsindoorsfor
  • 2023-10-31Noise pollution
    Noisereferstothesoundproducedbythevocalbodywhenitdoesirregularvibration.Fromaphysiologicalpointofview,allthesoundthatinterfereswithpeople'srest,studyandworkandinterfereswiththesoundyouwanttolistento,thatis,
  • 2023-10-29Indoor air pollution: What causes it and how to tackle it
      Mostpeoplethinkofairpollutionassomethingthatcomesfromfactoriesormotorvehicles.However,didyouknowthattheairinsideyourhomeorplaceofworkcanalsobepolluted?Infact,indoorairpollutioncanbeevenmoreharmfultoyourhea
  • 2023-09-20HarmonyOS ArkTS应用沉浸式状态栏
    开始学习鸿蒙,自己写个项目,app开发中,经常会需要隐藏顶部导航栏,在网上没找到资料,去翻看鸿蒙开发文档,找到了解决方法项目我使用的Stage模型1. 找到自动生成入口文件EntryAbility.ets 文件中,类继承的UIAbility2. 在onWindowStageCreate方法里写以下代码设置setWindowLayou
  • 2023-09-03Error
    Error当运行时错误产生时,Error对象会被抛出。Error对象也可用于用户自定义的异常的基础对象。#实例属性#message错误消息。对于用户创建的Error对象,这是构造函数的第一个参数提供的字符串。#cause导致该错误的具体原始原因。在捕获错误时,我们可能会使用更具体或更加实用
  • 2023-08-2820230512 java.lang.Throwable
    介绍java.lang.ThrowablepublicclassThrowableimplementsSerializableError和Exception的父类,只有该类型才可以被throw和catch不是RuntimeException或Error子类的都被认为是检查异常(checkedexception),包括Throwable构造函数共有5个构造函数,继承时可以选择性
  • 2023-08-23mybatis 报错:Cause: java.lang.NumberFormatException: For input string: "java"
    1、所错图示:2、为什么包这样的错误?在if查询条件的逻辑没有错,其实在代码转换解析时,自动转换类型了,是代码在转换解析时异常。<!--where与if配合使用--><selectid="selectBlogIfWhere"resultType="blog"parameterType="blog"><includerefid="commBlog"></in
  • 2023-06-29spring某些类只有在prod环境生效
    spring某些类只有在prod环境生效并加载bean@Profile("prod")//只有prod的profile环境下,spring才会加载bean到容器中过去@Component@Slf4j@Profile("prod")publicclassUmpAlarmMqConsumerimplementsIStoppable,InitializingBean{ @Override publicvoidstop(Strin
  • 2023-05-26使用resource读取properties文件,出现Cause: java.sql.SQLException: No suitable driver found for http://maven.a
    ###Errorqueryingdatabase.Cause:java.sql.SQLException:Nosuitabledriverfoundforhttp://maven.apache.org###Theerrormayexistincom/louis/dao/UserMapper.xml###Theerrormayinvolvecom.louis.dao.UserMapper.getUserList###Theerroroccurred
  • 2023-04-13Error parsing SQL Mapper Configuration. Cause: java.io.IOException: Could not find resource com/myba
    用idea使用mybatis时<mappers><mapperresource="com/mybatis/mapper/UserMapper.xml"></mapper></mappers>遇到吐下错误时ErrorparsingSQLMapperConfiguration.Cause:java.io.IOException:Couldnotfindresourcecom/my
  • 2023-04-07Java GenericObjectPool 对象池化技术--SpringBoot sftp 连接池工具类
    JavaBasePooledObjectFactory对象池化技术通常一个对象创建、销毁非常耗时的时候,我们不会频繁的创建和销毁它,而是考虑复用。复用对象的一种做法就是对象池,将创建好的对象放入池中维护起来,下次再用的时候直接拿池中已经创建好的对象继续用,这就是池化的思想。ApacheCommonsPoo
  • 2023-04-06Parameter 'account' not found. Available parameters are [arg1, arg0, param1, param2]] with
     使用Mybatis传参时遇到的一个问题    更改前的代码 ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------更改后 
  • 2023-03-16mybatis:Could not set parameters for mapping: ParameterMapping
    报错:展开查看org.apache.ibatis.exceptions.PersistenceException:###Errorqueryingdatabase.Cause:org.apache.ibatis.type.TypeException:Couldno