自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(128)
  • 资源 (2)
  • 收藏
  • 关注

原创 Vue——多选table列进行操作,支持分页

1、官网提供:手动添加一个el-table-column,设type属性为selection即可<template> <div> <el-button @click="TestSelect">按钮</el-button> </div> <el-table ref="multipleTable" :data="tableData"

2020-10-25 00:06:11 2716 3

原创 Vue——filters、formatter改变table列显示

前端经常在表格显示的时候需要进行列转换,目前使用到两种方式1、使用elementui中formatter用于格式化指定列的值,接受一个Function,会传入两个参数:row和column,可以根据自己的需求进行处理。2、使用filters过滤器:跟methods同级{{ message | filterA('arg1', arg2) }}这里,filterA被定义为接收三个参数的过滤器函数。其中message的值作为第一个参数,普通字符串'arg1'作为第二个参数,表达式...

2020-10-25 00:01:23 1366

原创 Vue——el-option下拉框绑定

1、正常使用v-for 进行遍历 下拉框内容,如果需要增加一个自定义的值,则加一个el-optionel-option用法: 参数 说明 类型 可选值 默认值 value 选项的值 string/number/object — — label 选项的标签,若不

2020-10-24 23:58:16 40651 1

原创 Springboot2.x——项目启动后执行

springboot项目启动之后,我们需要初始化运行一些东西,可以使用CommandLineRunner、ApplicationRunner接口1、CommandLineRunner,重写run 方法 加上Component 注入bean@Component@Order(value = 1)public class StarterMethod implements CommandLineRunner { @Override public void run(String...

2020-10-24 23:49:52 485

原创 Springboot2.x—— InitializingBean项目初始化执行

1、实现InitializingBean接口,重写afterPropertiesSet()在bean初始化时会执行该方法@Configurationpublic class RecoveryManagerJob implements InitializingBean { /** * @throws Exception */ @Override public void afterPropertiesSet() throws Exception {

2020-10-24 23:44:49 633

原创 JAVA——多线程CountDownLatch使用

使用java线程池ExecutorService,执行多线程操作,使用CountDownLatch来保证多线程执行完毕之后,再释放线程池新建一个类测试并发使用:public class runDo { private long id; private String name; private String env; public long getId() { return id; } public void setId(lo

2020-10-24 23:38:51 232

原创 JAVA——jsonpath使用

记录下几种常用用法:添加依赖:<dependency> <groupId>com.jayway.jsonpath</groupId> <artifactId>json-path</artifactId> <version>2.4.0</version></dependency>测试如下:/** * TestJsonPath 各种类型测试 */@Testpubl

2020-10-24 23:31:50 5387

原创 JAVA——fastJson转换

记录一下常用的fastjson转换一、项目增加依赖:<dependency> <groupId>com.alibaba</groupId> <artifactId>fastjson</artifactId> <version>1.2.70</version></dependency>新建测试实体类public class RunDo { private lo

2020-10-24 23:25:53 502 1

原创 Spingboot2.x—— devtools进行热部署

spring-boot-devtools模块包括对应用程序快速重启的支持,spring-boot-devtools只要类路径上的文件发生更改,使用的应用程序就会自动重新启动。在IDE中工作时,这可能是一个有用的功能,因为它为代码更改提供了非常快速的反馈循环。默认情况下,将监视类路径上指向文件夹的任何条目的更改。请注意,某些资源(例如静态资产和视图模板)不需要重新启动应用程序该spring-bo...

2019-12-29 19:04:25 229

原创 Springboot2.x——Jar运行静态资源报错问题

Springboot打成Jar包运行,和在Idea内启动读取资源文件的方法是不一样的,导致部署项目的时候出了点问题一、编译器内直接springboot项目运行:properties去读数据:public class GetProUtil { private String file; private Properties prop; public GetPro...

2019-12-29 18:56:02 420

原创 Springboot2.x——把第三方jar包打进jar包运行

目前知道两种方式:1、使用Nexus搭建Maven私服,上传本地jar包进行pom文件配置(后面再详细写一下)主要pom文件配置如下: <repositories> <repository> <id>nexus</id> <name>Team Nexus Repository</name> ...

2019-12-29 18:50:54 863

原创 Python——python3-mac环境安装

1、mac自带一个2.7版本的pythonMacBookPro:python wuxi$ which python /usr/bin/python查看 python 版本MacBookPro:python wuxi$ python --version Python 2.7.102、mac 安装python3版本brew install python3MacBookPr...

2019-12-29 18:39:53 341

转载 Nodejs——setInterval设置停止的次数和时间

需要知道已经经过了多少次或者说过多久就会停止var timesRun = 0;var interval = setInterval(function(){timesRun += 1;if(timesRun === 60){clearInterval(interval);}//do whatever here..}, 2000);var startTime = new D...

2019-11-19 21:32:52 1175

原创 Springboot2.x——静态资源的访问

Springboot需要访问静态资源,主要看看资源文件的储存路径springboot项目:找到该依赖自动配置Jar包打开spring.factories,找到WebMvcAutoConfiguration# Auto Configureorg.springframework.boot.autoconfigure.EnableAutoConfiguration=\org.s...

2019-11-11 22:25:02 867

原创 Springboot2.x——读取自定义配置文件

Springboot可以通过application.properties和application.yml读取配置文件,如果需要读取自定义配置文件信息,可以通过以下方法一、通过@PropertySource加载自定义配置文件1、在springboot项目resources文件夹下新建student.propertiesstudent.number=1001student.nam...

2019-11-07 18:11:11 1251

原创 springboot2.x——profile多环境管理

由于Springboot存在多个环境,就需要对生产、测试、开发等环境配置进行切换,Springboot两种配置文件类型:application.properties 和 application.yml,简单记录下用法,接着上一篇:https://blog.csdn.net/wx19900503/article/details/102959701一、application.properties类...

2019-11-07 17:58:08 1133

原创 Springboot2.x——实体类绑定默认配置文件属性

Springboot需要通过配置文件直接读取属性时,可以将其注入到实体类上面,两种方法:@ConfigurationProperties和@value一、通过@ConfigurationProperties直接将配置文件整体关联@Component:将当前bean注入到容器中,@Configuration等于xml配置bean文件@ConfigurationProperties(pre...

2019-11-07 17:46:22 1760

原创 Springboot2.x——maven插件打成可以执行的Jar包

一、springmvc需要打成War通过nginx或者tomcat发布,而springboot内嵌tomcat等容器,可以打成Jar直接执行运行,比较方便jar包里面包含了编译后的类和所有依赖的jar1、pom配置:pom文件中添加:若没有该配置默认打包成jar包<packaging>jar</packaging>maven相关配置:<...

2019-11-05 18:14:35 1360

原创 springboot2.x——接口访问出现中文乱码

一、上一篇使用JdbcTemplate访问数据库用浏览器访问中文返回正常,使用jmeter却出现了乱码请求结果如下:1、解决方法,配置文件:application.properties新增以下配置spring.http.encoding.charset=UTF-8spring.http.encoding.force=truespring.http.encoding...

2019-11-05 18:08:27 2870

原创 Springboot2.x——使用JdbcTemplate简单操作数据库

springboot使用JdbcTemplate简单操作数据库,还有一些MyBatis、Hibernate、Spring Data JPA其他框架后续再研究一、安装mysql,准备测试数据本地安装mysql,新建数据库wx_springboot,新建表:wx_UserDROP TABLE IF EXISTS `wx_User`;CREATE TABLE `wx_User` ( ...

2019-11-04 18:57:06 679

原创 Springboot2.x——idea新建springboot项目及运行

一、springboot简介这段时间一直写node.js,发现写一个服务太方便了,只要安装node环境和依赖的库 就可以直接开发。而spring开发相对比较麻烦,springboot则是由Pivotal团队提供的全新框架,其设计目的是用来简化新Spring应用的初始搭建以及开发过程。该框架使用了特定的方式来进行配置,从而使开发人员不再需要定义样板化的配置SpringBoot所具备的特征有:...

2019-11-04 18:39:27 977

转载 MAC——Visual Studio Code 快捷键 Mac 版

Mac 键盘符号说明⌘==Command ⇧==Shift ⇪==Caps Lock ⌥==Option ⌃==Control ↩==Return/Enter ⌫==Delete ⌦==向前删除键(Fn+Delete) ↑==上箭头 ↓==下箭头 ←==左箭头 →==右箭头 ⇞==Page Up(Fn+↑) ⇟==...

2019-10-30 09:33:22 1094

原创 Docker——部署selenium grid进行分布式自动化测试

Selenium Standalone Server Hub和Chrome、Firefox的节点配置的Docker镜像,Hub分发到Node子节点进行分布式web自动化测试一、安装selenium环境1、docker下载主节点hub镜像和子节点各浏览器node镜像docker pull selenium/hubdocker pull selenium/node-chrome-deb...

2019-10-28 18:09:02 927

原创 Vue——DatePicker日期选择器进行日期格式化

1、Element 日期选择器控件: <div> <el-form :inline="true" class="demo-form-inline"> <el-form-item label="Time" required="required"> ...

2019-10-28 17:58:19 4376 1

原创 Nodejs——silly-datetime时间戳与日期相互转换

时间格式化的库 silly-datetime安装:npmisilly-datetime--savevar sd = require('silly-datetime');// silly-datetime 当前时间格式化console.log(sd.format(new Date(), 'YYYY-MM-DD HH:mm'));// 2019-10-28 12:41co...

2019-10-28 17:53:59 3331

原创 Nodejs——async解决异步请求问题

1、使用for循环数组nodejs使用axios时,我需要循环使用一个数组进行接口请求,使用for循环结果发现索引会乱,因为是异步请求例如下面for循环,最后会发现i都是最后那个,就会有问题for (var i = 0; i < self.mydevices.length; i++) { this.$ajax({ url: 'http://...

2019-10-24 15:34:18 1069

原创 Docker——nginx部署vue项目

docker使用 nginx 部署vue项目的两种方式一、docker 安装 nginx1、docker search nginxMacBookPro:share wuxi$ docker search nginxNAME DESCRIPTION STA...

2019-10-17 17:51:19 891

原创 Vue——项目打包部署到nginx

1、修改vue项目config文件夹index.js文件build: { index: path.resolve(__dirname, '../dist/index.html'), assetsRoot: path.resolve(__dirname, '../dist'), assetsSubDirectory: 'static', // 绝大多数我们使用"...

2019-10-17 17:45:57 261

原创 Vue——项目打包部署到tomcat

1、修改vue项目config文件夹index.js文件build: { index: path.resolve(__dirname, '../dist/index.html'), assetsRoot: path.resolve(__dirname, '../dist'), assetsSubDirectory: 'static', // 绝大多数我们使用"...

2019-10-17 17:43:03 1471

原创 Docker——制作Dockerfile

一、安装docker1、mac 下载地址:https://docs.docker.com/v17.12/docker-for-mac/install/#download-docker-for-mac进行dmg安装,移动到应用程序二、创建springboot demomvn clean package 打包成可执行jar,注意设置主方法清单 :project setting——art...

2019-10-09 23:39:19 252

原创 Docker——docker安装其他应用

一、安装:jenkinsdocker pull docker.io/jenkins创建挂载路径 mkdir /usr/local/wuxi/jenkinsdocker run -itd --name wxjenkins -p 8088:8080 -p 50000:50000 -v /Users/wuxi/Documents/docker/jenkins:/var/jenkins_hom...

2019-10-09 23:36:35 236

原创 Docker——docker安装redis

1、docker search redis2、docker pull redis拉取官方镜像3、docker run -p 6379:6379 --name wxredis -v /Users/wuxi/Documents/docker/redis/redis.conf:/etc/redis/redis.conf -v /Users/wuxi/Documents/docker...

2019-10-09 23:34:18 152

原创 Docker——docker常用命令

整理的一些常用的命令查看docker版本 :docker version1、镜像相关docker search IMAGE 查找镜像库docker pull IMAGE:TAG 获取镜像docker images 查看所有镜像docker rmi imageID 删除镜像3、容器相关redis举例docker create -p 16379:6379 -...

2019-10-09 23:30:34 175

原创 Vue——el-table导出excel

Element使用时遇到一个问题:el-table导出到excel的时候数据重复了 ,删除el-table的fixed数据可以解决fixed 列是否固定在左侧或者右侧,true 表示固定在左侧 string, boolean true, left, right — 1、 安装依赖:npm install --save xlsxnpm install --sa...

2019-09-30 17:06:33 1312 3

原创 Vue——vue.js获取axios及request-promise返回数据

vue调用接口,在main.js中引入import rp from 'request-promise'Vue.prototype.$request = rpimport axios from 'axios'Vue.prototype.$ajax = axiosscript 中 mydevices:[] 从接口获取方法如 searchdevice以下三种方法获取<scr...

2019-09-30 17:04:13 4027

原创 Vue——v-if控制元素是否显示

show.vue文件如下: <el-table-column label="状态"> <template slot-scope="scope"> <el-button v-if="show" :loading="true" type="danger"...

2019-09-30 17:01:53 5272

原创 Vue——html引用cdn

单页面引用cdn 显示图表和表单,构建本地简单的测试报告Echarts:https://echarts.baidu.com/tutorial.html#5%20%E5%88%86%E9%92%9F%E4%B8%8A%E6%89%8B%20EChartselement-ui:https://element.eleme.cn/#/zh-CN/component/installation...

2019-09-30 15:49:50 1940

原创 Nodejs——express及跨域处理

1、express是基于Node.js平台,快速、开放、极简的 Web 开发框架安装:npm install express --savenpm install body-parser --savebody-parser是express解析中间件,可以方便的去处理json等格式内容,下面整理了一些情况const express = require('express')con...

2019-09-30 15:42:20 1363 1

原创 Vue——el-table中打开dialog修改数据

1、表格显示数据<el-table :data="tableData" style="width: 100%"> <el-table-column prop="battery_min" label="最小值" width="180"/> <el-table-colum...

2019-09-27 22:29:41 6280 5

原创 Nodejs——axios请求接口及拦截器使用

一、关于axios的使用安装依赖:npm install --save axiosapi 可以参考https://www.npmjs.com/package/axios以下针对https://blog.csdn.net/wx19900503/article/details/101775442文中的接口服务,写了几种请求样例const axios =require('axio...

2019-09-27 22:23:37 3503

opencv_java342.dylib.zip

opencv_java342.dylib opencv 库 mac 下可用 引用 static{ System.load(System.getProperty("user.dir")+"/src/main/resources/opencv_java342.dylib"); }

2019-06-20

charles+jar破解版

解压后,进行安装,将最外层的charles.jar去替换,可用

2018-02-10

空空如也

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

TA关注的人

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