- 博客(10)
- 资源 (2)
- 收藏
- 关注
原创 maven settings.xml无效排查过程
1.首先执行mvn help:effective-settings,查找当前maven仓库地址2.错误信息[ERROR] Error executing Maven.[ERROR] 2 problems were encountered while building the effective settings[FATAL] Non-parseable settings /Users/xxx/work/tools/apache-maven-3.6.3/conf/settings.xml: end
2020-05-26 14:05:50
2875
原创 ffmpeg根据时间获取视频图片,并解析标签结果
import ffmpegimport numpyimport cv2import sysimport jsondef read_frame_by_time(in_file, time): """ 指定时间节点读取任意帧 """ out, err = ( ffmpeg.input(in_file, ss=time) .output('pipe:', vframes=1, format='image2', vcodec=.
2020-05-12 13:27:14
660
原创 gradle + Springboot中采用log4j2进行日志管理
1.添加jar包compile('org.springframework.boot:spring-boot-starter-log4j2:1.5.8.RELEASE')2.去除jar包冲突all*.exclude module: 'spring-boot-starter-logging'all*.exclude module: 'logback-classic'all*.exclude module: 'log4j-over-slf4j'all*.exclude module: 'sl
2020-05-09 09:59:31
1970
原创 springboot 中Transactional注解获取不到问题排查
近期新入手使用gradle+springboot进行多模块项目开发,在update和save时@Transactional事务获取不到。具体原因:在maven或者build.gradle中配置jar包出现问题。一定要引入gradle jar包依赖方式implementation 'org.springframework.boot:spring-boot-starter-jdbc'maven jar包依赖方式 <dependency> ...
2020-05-09 09:47:11
1956
原创 shell脚本定时备份数据库
#!/bin/bash#功能说明:本功能用于备份mysql数据库PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/local/mysql/binexport PATH#数据库用户名dbuser='XXX'#数据库密码dbpasswd='XXX'#数据库名,可以定义多个数据库,中间以空格隔开,...
2020-04-15 20:59:45
275
原创 vue父组件调用子组件页面实现代码复用
首先需要创建父级组件,如下所示:<template> <div class="app-container"> <el-button size="mini" @click="pendingClick(scope.$index, scope.row)" >click</el-button> <...
2019-06-13 10:34:03
1058
原创 spring aop使用记录
1.spring配置,本文采用xml配置方式配置文件为:<bean id="springAop" class="com.XXX.share.XXXX.SpringAop"/>//实现定义方法的类路径<aop:config proxy-target-class="false"> <aop:aspect id="addAop" ref="springA...
2019-05-22 16:59:36
132
原创 vue 远程加载图片,渲染后处理图片,并让图片自适应大小
首先需要远程加载图片this.$http.post(tagDataMarketUrl.downloadDetail,datas).then( (response) =>{ //远程加载数据 this.data= response.data; //远程图片 this.img = this.data.img ...
2019-04-11 20:32:58
4490
2
原创 多ajax请求下浏览器UI阻塞解决
批量文件文件异步上传当使用ajax进行几十上百次的请求时,由于request请求会使浏览器处于等待状态,从而造成浏览器长时间无法访问的问题。针对此类问题,需使用Deferred使其成为异步操作。具体使用流程如下:$scope.commitOrc = function () { //判断是否选中文件夹 var fileOrc = $("#fileFolderOr...
2018-08-03 15:44:35
1270
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人