自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(16)
  • 收藏
  • 关注

原创 MYSQL 根据唯一索引键更新死锁问题

网上搜索发现update的where条件为唯一索引时候,sql会同时获取两把锁,先获取唯一索引business_no的锁,在获取主键id的锁。语句为UPDATE table set data = ‘123’ where business_no = 'ABC';id:主键 business_no为唯一索引字段,其他字段暂时无意义。最开始对锁的理解就是锁主键、不清楚是否有其他锁参与。mysql 死锁问题及死锁权重分析。上述sql在一个事务内。1、生产发现死锁一次。

2023-10-20 15:53:19 523

原创 VSCODE如何选中某一列内容进行修改

ALT+SHIFT 鼠标拖动选择就可以修改了。或者CTRL+ALT+SHIFT加鼠标滚轮选择、

2020-10-12 16:02:59 8247

原创 postman导出excel不能正常显示文件名

postman导出excel文件名是response.xml。postman导出的excel文件名response.xml。从网页请求导出的excel名称就是正常的。不知道啥原因。碰到该问题可以忽略。...

2019-11-05 16:26:07 8961 1

原创 springboot打jar包的方式无法使用jsp页面

老项目升级spring-boot。老项目有几个jsp测试页面。项目是按jar包的方式打包的。通过main方法启动可以访问JSP、java -jar启动无法访问jsp页面。查看spring-boot文档jsp无法通过打jar包的方式访问,只有war包才可以访问。因为几个测试页面项目架构确定的jar包,所以直接改成html了。...

2019-11-05 16:08:27 719

原创 IDEA如何快速定位jar包依赖

下载maven helper插件。进入setting。重启idea。进入maven项目,点击pom.xml文件就可以查看jar的依赖关系了。

2019-10-29 09:14:49 9026 1

原创 springboot的@CrossOrigin("*")跨域仍然失效

项目中偶尔遇到即使加了@CrossOrigin跨域失败:第一次遇到时间有限没解决:前端直接添加跨域处理。jQuery.support.cors = true;后续第二次遇到该问题,作为后端不能让前端解决跨域问题。debug详细查找原因:发现在自定义拦截器返回失败,跨域失败。明白该问题:需要以下知识。(mvc拦截器的链路模式)(Cors拦截器加载)(自定义的拦截器加载...

2019-10-23 14:07:56 10268

原创 idea tomcat 启动后 lib 中还有pom中没有的包

今天IDEA使用tomcat启动项目、发现一个启动异常、一个bean 无法正常注入使用jetty启动正常,部署到服务器也是正常的。就是tomcat启动异常异常很明显:因包升级该bean已被删除,是不需要的。第一步:检擦pom 是否有某个pom引入了该包的老版本。 发现没有。第二步:查看tomcat的webapp下的lib发现真的有老版本的包。 这个包是是从那来的。找不到...

2019-07-15 16:14:13 531

原创 springboot 添加 servlet

1:由于项目需要兼容老的项目需要加载servlet根据百度各种方法添加发现不能加载init方法最后直接手动调用init方法。然后发现int()方法加载中需要的一些需配置变量未加载报错,修改对应servlet的加载优先级public class SmsApplication { public static void main(String[] args) { ...

2019-07-05 18:45:56 873

原创 Cannot find the system Java compiler. Check that your class path includes tools.jar

java.lang.IllegalStateException: Cannot find the system Java compiler. Check that your class path includes tools.jar at com.greenpineyu.fel.compile.FelCompiler16.<init>(Unknown Source)...

2019-06-26 17:57:49 2520

原创 java.lang.IllegalStateException: It is illegal to call this method if the current request is not in

package com.example.zhangwenbo.demo.web.servlet;import org.springframework.http.HttpRequest;import javax.servlet.AsyncContext;import javax.servlet.ServletException;import javax.servlet.annotat...

2019-06-15 14:37:46 2393

原创 ERROR: Exception when publishing, exception message [Failed to connect and initialize SSH connection

JEKINS构建报以下错误:ERROR: Exception when publishing, exception message [Failed to connect and initialize SSH connection. Message: [Failed to connect session for config [xx.xx.xx.xxx]. Message [Auth fail...

2019-04-02 10:58:18 26270 2

原创 java.lang.RuntimeException: Cannot create a secure XMLInputFactory

java.lang.RuntimeException: Cannot create a secure XMLInputFactory    at org.apache.cxf.staxutils.StaxUtils.createXMLInputFactory(StaxUtils.java:338)    at org.apache.cxf.staxutils.StaxUtils.getXMLI...

2019-02-13 14:08:51 1199

原创 maven项目如何忽略某jar包

maven项目中遇到jar包冲突,某些jar包需要忽略。如何确认该jar包是哪个引入的。用eclipse打开maven项目pom.xml进入如图搜索需要忽略的jar包,选中许需要忽略的jar包右键选exclude maven Artifiact对应的包即被忽悠略查看pom.xml如下图所示。以上是eclipse的方法、IDEA如何快速忽略JAR包:https://blo...

2019-02-13 14:05:56 12232 1

原创 sql日志无法打印

#log4j.rootLogger = [ level ] , appenderName, appenderName, ...log4j.logger.org.springframework=errorlog4j.rootLogger = INFO, console, Rlog4j.appender.console = org.apache.log4j.ConsoleAppenderlo...

2019-02-13 11:31:11 1373

原创 通过Spring配置获取properties文件内容实例

第一种方法: properties文件内容dataSource.url="123"dataSource.username="123"dataSource.password="123"dataSource.driverClassName="123"在配置文件applicationContext.xml配置,如果是单个个properties文件&lt;value&gt;/config...

2019-01-14 17:47:26 2230

原创 JQGRID请求传递数组参数

JQGRID的本质是ajax方式请求ajax请求传递数组参数  添加traditional: true即可$.ajax({ url: "" + Math.random(), dataType: "json", type: "post", traditional: true, data: dat...

2018-11-08 11:24:05 3684

空空如也

空空如也

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

TA关注的人

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