Easter79 Easter79
3年前
springboot整合redis的错误记录
https://blog.csdn.net/CeliaTodd/article/details/104977577springboot整合redis的过程中,遇到Unabletoconnecttolocalhost:6379的异常问题.(redis是在Linux中启动的)注解:IP地址最开始用的是Linux的IP地址,这里显示是local
Easter79 Easter79
3年前
Statement及PreparedStatement执行多个sql
这两个对象的区别:1.Statement它更适合执行不同sql的批处理,它没有提供预处理功能,性能比较低。2.PreparedStatement它适合执行相同的批处理,它提供了预处理功能,属性比较高。         /\\     \ @param args     \ @thr
Easter79 Easter79
3年前
SpringCloud consul 微服务(注册到主机名的问题)
目前项目在使用consul做服务注册与发现,做SpringSecurityOAuth2权限认证的authorization\_code模式的时候发现一个异常坑爹的问题这是开始的服务注册代码块bootstrap.yml:spring:cloud:consul:port:8500
Stella981 Stella981
3年前
Microsoft.NETCore.App 版本不一致导致的运行失败
场景重现今天新建了一个ASP.NETCore的项目,通过WebDeploy顺利发布到IIS上后,但访问时出现如下异常:!HTTPError502.5ProcessFailure(https://static.oschina.net/uploads/img/201705/25131143_Q15g.png"
Stella981 Stella981
3年前
IntelliJ IDEA相关整理
1、快捷键ctrln查找类ctrlshiftn查找文件ctrlalth查找调用链 alt左键回退ctrlf当前查找ctrlshfitf全文搜索altinsertsetter/getter2、Debug模式启动Tomcat异常缓慢问题  原因:是否在方法上加了断点,如果在方法
Stella981 Stella981
3年前
Lua pcall
假设你想运行一段Lua代码,这段代码运行过程中可以捕捉所有的异常和错误。1、将这段代码封装在一个函数内function foo()    if x  y then        error()    end        print(ai)end2、使用pcall调用这
Easter79 Easter79
3年前
Trident学习笔记(一)
1\.Trident入门Trident\ 三叉戟 storm高级抽象,支持有状态流处理; 好处是确保消费被处理一次; 以小批次方式处理输入流,得到精准一次性处理 ; 不再使用bolt,使用functions、aggreates、filters以及states。 TridentT
Stella981 Stella981
3年前
NoClassDefFoundError && ClassNotFoundException
两种错误都是涉及类加载问题,类层次结构如下:!(https://oscimg.oschina.net/oscnet/c01027b28d3ecebe5cd027069ea4d949092.png)NoClassDefFoundError是系统错误,ClassNotFoundException是系统异常,可以捕获。NoClassDefFoundE
SpringBoot版本升级引起的FileNotFoundException——WebMvcConfigurerAdapter.class
缘起最近公司项目要求JDK从8升到17,SpringBoot版本从2.x升级到3.x,期间遇到了一个诡异的FileNotFoundException异常,日志如下(敏感信息使用xxx脱敏)logorg.springframework.beans.facto