• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






天生自然

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理

05 2022 档案

 
springboot框架内实现分页查询
摘要:https://www.cnblogs.com/hector-1/p/14940210.html 阅读全文
posted @ 2022-05-31 19:18 吴裕雄
vue+elementUI,el-table 数据导出Excel
摘要:1. 安装依赖 //xlsx 与 file-saver依赖 npm install --save xlsx file-saver 2.在需要的组件中引入 import FileSaver from 'file-saver' import * AS XLSX from 'xlsx' <el-table 阅读全文
posted @ 2022-05-31 15:27 吴裕雄
el-date-picker设置默认值
摘要:<el-date-picker v-model="value" type="daterange" @change="getdate" start-placeholder="开始日期" end-placeholder="结束日期"> </el-date-picker> getdate2 () { th 阅读全文
posted @ 2022-05-31 10:16 吴裕雄
解决: Cannot read properties of undefined (reading 'utils')
摘要:把import XLSX from 'xlsx'变成import * as XLSX from 'xlsx' 阅读全文
posted @ 2022-05-31 09:36 吴裕雄
vue 导出el-table内容
摘要:如果el-table表格有跨行或跨列的,同样也支持 1.安装依赖:npm install --save xlsx file-saver 2.在放置需要导出功能的组件中引入 import FileSaver from 'file-saver' import * as XLSX from 'xlsx' 阅读全文
posted @ 2022-05-31 09:36 吴裕雄
Centos7 开启端口,
摘要:开启 " 8080 " 端口;不开启端口,那么外部无法访问服务器应用 Centos7的: 则输入命令 " firewall-cmd --zone=public --add-port=8080/tcp --permanent " 在防火墙中新增8080端口; 输入命令 " firewall-cmd - 阅读全文
posted @ 2022-05-30 22:23 吴裕雄
MYSQL_DATE_FORMAT()_函数_详解
摘要:https://blog.csdn.net/xiaodingdou/article/details/52510883 阅读全文
posted @ 2022-05-30 17:52 吴裕雄
vue 跨行
摘要:/** * 合并相同数据,导出合并行所需的方法(只适合el-table) * @param {Array} dataArray el-table表数据源 * @param {Array} mergeRowProp 合并行的列prop * @param {Array} sameRuleRowProp 阅读全文
posted @ 2022-05-30 16:32 吴裕雄
解决:Inferred type 'E' for type parameter 'E' is not within its bound
摘要:这是因为我查找类型的类,和接收返回的类不一致,导致的; 把列表的类型修改为一样就可以了。 IPage<TbAlliqWeighRecord> iPage = new Page<>(record.getPage(),record.getLimit()); IPage<TbAlliqWeighRecor 阅读全文
posted @ 2022-05-29 22:38 吴裕雄
提取字符串指定的内容
摘要:package com.tszr; import java.util.regex.Matcher; import java.util.regex.Pattern; public class Test { public static void main(String[] args) { String 阅读全文
posted @ 2022-05-28 10:49 吴裕雄
解决:Column 'id' in order clause is ambiguous
摘要:原因:多表查询,都有同样的字段; 解决:需要指定字段对应的表。比如增加表别名,别名.字段 阅读全文
posted @ 2022-05-27 17:02 吴裕雄
vue element 实现联动查询
摘要:watch:{ listQuery: { handler(oldval,newval){ if(newval.customerName ''||newval.customerName undefined){ listQuery.matter = '' } }, deep:true } } <el-f 阅读全文
posted @ 2022-05-26 20:45 吴裕雄
sql查询时添加一列为固定值
摘要://sql查询添加一列固定值 SELECT 表字段1,表字段2,表字段3,'固定值字符串' AS FixedStr FROM 表名称 阅读全文
posted @ 2022-05-25 18:39 吴裕雄
LocalDateTime用法
摘要:https://blog.csdn.net/xxdw1992/article/details/112761525 阅读全文
posted @ 2022-05-25 18:38 吴裕雄
centos 安装Tomcat8.5与环境配置
摘要:https://blog.csdn.net/hello_world_qwp/article/details/78862277 阅读全文
posted @ 2022-05-24 16:02 吴裕雄
解决:cannot verify dlcdn.apache.orgs certificate
摘要:解决方法: wget带参数:--no-check-certificate 「wget --no-check-certificate https://dlcdn.apache.org/tomcat/tomcat-8/v8.5.78/bin/apache-tomcat-8.5.78.tar.gz」 阅读全文
posted @ 2022-05-24 15:15 吴裕雄
label-position
摘要:https://blog.csdn.net/qq_22182989/article/details/118679855 阅读全文
posted @ 2022-05-23 16:24 吴裕雄
在vue+element 中使用 autocomplete=on,实现自动补全
摘要:https://blog.csdn.net/sinat_29740819/article/details/108563356 阅读全文
posted @ 2022-05-23 16:19 吴裕雄
vue3 换logo
摘要:.vue-cli3构建的项⽬⽬录中有public,该⽬录下的favicon.ico就是指图标,index.html⽂件⾥⾯可以链接该图标。 4.在vue.config.js⾥⾯加⼊以下代码 module.exports = { pwa: { iconPaths: { favicon32: 'favi 阅读全文
posted @ 2022-05-22 17:46 吴裕雄
解决:element Cannot read properties of undefined (reading 'prototype')
摘要:https://blog.csdn.net/xiawenyi1234/article/details/112277750 阅读全文
posted @ 2022-05-22 16:46 吴裕雄
解决:peer vue@"^2.5.17" from element-ui@2.15.8
摘要:npm install --legacy-peer-deps element-ui --save https://blog.csdn.net/a_qian_a/article/details/124728518 http://www.qianduanheidong.com/blog/article/ 阅读全文
posted @ 2022-05-22 14:34 吴裕雄
Vue中常用的提示信息
摘要:Message提示: this.$message.warnging('请......') // 警告(提示)信息 this.$message.success('......成功') // ....成功信息 this.$message.error('......失败') // .....失败信息 th 阅读全文
posted @ 2022-05-20 14:56 吴裕雄
解决:peer vue@"^2.5.17" from element-ui@2.15.8
摘要:element-ui不适配vue3,官方已将vue3版本的更新为element-plus 解决: npm install element-plus --save 引入 import { createApp } from 'vue' import ElementPlus from 'element-p 阅读全文
posted @ 2022-05-19 20:32 吴裕雄
postmat发送json文字信息和图片文件信息
摘要: 阅读全文
posted @ 2022-05-19 14:41 吴裕雄
Nacos的基本配置
摘要:https://blog.csdn.net/luoqi12897/article/details/121929948 1.什么是Nacos? Nacos 是阿里巴巴开源的一个更易于构建云原生应用的动态服务发现、配置管理和服务管理平台。 2.Nacos Config整合 Nacos Config St 阅读全文
posted @ 2022-05-19 07:52 吴裕雄
vue-elementui限制input只能输入数字校验
摘要:说明 关于@input.native,由于elementui中对html的属性做了封装,所以使用html的原生属性需要添加“.native” @input.native=“formatNumber(‘keyword’)” // 正常英文输入法情况下输入框输入内容变化时对输入数据的处理 @compos 阅读全文
posted @ 2022-05-18 15:10 吴裕雄
vue 前端校验
摘要:<el-form-item label="重量(Kg)" prop="trainWeight"> <el-input v-model="objData.trainWeight" placeholder="请输入重量" style="width: 80%" /> </el-form-item> dat 阅读全文
posted @ 2022-05-18 07:48 吴裕雄
@TableField注解
摘要:@TableField注解 1、 主要用来解决实体类的字段名与数据库中的字段名不匹配的问题(数据库user_addr,字段useraddr未驼峰) 2、 实体类中的属性字段在表中不存在的问题 // 用来解决数据库中的字段和实体类的字段不匹配问题 @TableField(value = "age") 阅读全文
posted @ 2022-05-17 18:45 吴裕雄
将map数据转化为json数据
摘要://将map数据转化为json数据 JSONObject json = new JSONObject(); Iterator<Map.Entry<String, TbTrackScaleReceiveDepartment>> entries = tbTrackScaleReceiveDepartme 阅读全文
posted @ 2022-05-17 15:56 吴裕雄
MultipartFile实现文件上传功能
摘要:https://blog.csdn.net/weixin_45866737/article/details/122598107 https://blog.csdn.net/qq_42239765/article/details/102560484 阅读全文
posted @ 2022-05-16 22:24 吴裕雄
java获取时间戳
摘要:DateFormat df = new SimpleDateFormat("yyyyMMddHHmmss"); Calendar calendar = Calendar.getInstance(); String dateName = df.format(calendar.getTime()); 阅读全文
posted @ 2022-05-16 22:14 吴裕雄
mysql if else 语句修改字段
摘要:UPDATE tb_track_scale_record SET trainWeight = ( CASE WHEN grossWeight IS NOT NULL THEN tareWeight WHEN tareWeight IS NOT NULL THEN tareWeight END ); 阅读全文
posted @ 2022-05-15 23:27 吴裕雄
QueryWrapper常用的条件参数
摘要:setSqlSelect 设置 SELECT 查询字段 where WHERE 语句,拼接 + WHERE 条件 and AND 语句,拼接 + AND 字段=值 andNew AND 语句,拼接 + AND (字段=值) or OR 语句,拼接 + OR 字段=值 orNew OR 语句,拼接 + 阅读全文
posted @ 2022-05-15 19:28 吴裕雄
vue select 默认选中
摘要:<select name="public-choice" v-model="couponSelected" @change="getCouponSelected"> <option :value="coupon.name" v-for="coupon in couponList" >{{coupon 阅读全文
posted @ 2022-05-15 18:19 吴裕雄
解决:Optional long parameter 'id' is present but cannot be translated into a null
摘要:请检查api接口参数是否写正确了 如: method: 'put', params: {'ids':ids} 写成了: params :ids --错误 阅读全文
posted @ 2022-05-14 19:37 吴裕雄
如何按MySQL中两列的最大值排序?
摘要:mysql> insert into DemoTable834 values(10,20); mysql> insert into DemoTable834 values(40,50); mysql> insert into DemoTable834 values(20,24); mysql> in 阅读全文
posted @ 2022-05-13 17:14 吴裕雄
wrapper.or and 语句写法
摘要:使用Mybatis Plus的QueryWrapper实现如下的sql语句效果: select * from xxx where field1= ? and (field2= ? or field3= ?) Mybatis Plus代码: QueryWrapper<xxx> queryWrapper 阅读全文
posted @ 2022-05-13 16:11 吴裕雄
解决:java: Invalid additional meta-data in 'META-INF/spring-configuration-metadat
摘要:找到resources下的meta-inf 下的additional-spring-configuration-metadata.json 文件 打开文件additional-spring-configuration-metadata.json 增加内容: { } 阅读全文
posted @ 2022-05-13 07:45 吴裕雄
解决:io.lettuce.core.RedisConnectionException: Unable to connect to localhost:637
摘要:出现这个报错,是因为项目的Redis配置有误或者是Redis还没启动的原因; 检查redis配置,如:密码错误也会出现这个报错。 阅读全文
posted @ 2022-05-12 18:26 吴裕雄
解决:Cannot resolve com.dahua.netsdk:dahua-netsdk-jni:1.0.0
摘要:因为maven官方仓库没有,所以需要自行手动安装,maven请添加环境变量(不添加的话就去maven的bin下面执行),然后在控制台执行如下指令,Dfile的内容是INetSDK.jar在你自己本地计算机的位置 解决:需要手工下载jar包,然后本地通过手工安装jar包; 下载路径: http://7 阅读全文
posted @ 2022-05-12 17:54 吴裕雄
定时任务
摘要:使用SpringBoot创建定时任务非常简单,目前主要有以下三种创建方式: 一、基于注解(@Scheduled) 二、基于接口(SchedulingConfigurer) 前者相信大家都很熟悉,但是实际使用中我们往往想从数据库中读取指定时间来动态执行定时任务,这时候基于接口的定时任务就派上用场了。 阅读全文
posted @ 2022-05-12 07:53 吴裕雄
springboot日志配置slf4j
摘要:<!-- 配置日志--> <dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> <optional>true</optional> </dependency> <dependency> <g 阅读全文
posted @ 2022-05-12 07:39 吴裕雄
Spring 定时任务之 @Scheduled cron表达式
摘要:https://www.cnblogs.com/erlongxizhu-03/articles/10553694.html 阅读全文
posted @ 2022-05-11 23:34 吴裕雄
笔记:Vue中防抖(debounce)、节流(throttle)的介绍与运用
摘要:1.防抖(debounce) 在事件被触发n秒后再执行回调,如果在这n秒内又被触发,则重新计时;典型的案例就是输入搜索:输入结束后n秒才进行搜索请求,n秒内又输入的内容,就重新计时。 通俗理解,就是我们在点击请求或者点击加载等过程中,只需要点击一次,但由于请求慢,点击了好多次,导致多次请求,防抖就是 阅读全文
posted @ 2022-05-11 17:57 吴裕雄
containsKey
摘要:containsKey(Object key) 方法的规范中写道:“当且仅当此映射包含针对满足 (key==null ? k==null : key.equals(k)) 的键 k 的映射关系时,返回 true”。不 应将此规范解释为:调用具有非空参数 key 的 Map.containsKey 将 阅读全文
posted @ 2022-05-11 12:13 吴裕雄
InetAddress.getLocalHost().getHostAddress() 问题
摘要:InetAddress.getLocalHost().getHostAddress() 取的本地 IP,于是把取得的 IP 地址打了出来,是 66.xx.xx.xx 的 IP,但实际本机 IP 是 192.168.11.185,怎么可能呢?难道是这个方法不会区分哪个 IP 才是真实 IP (这台机器 阅读全文
posted @ 2022-05-11 00:29 吴裕雄
Spring boot 如何获得客户端 ip 地址以及根据主机名获得 ip 地址
摘要:获得访问 controller 端口的客户端 ip 地址 import javax.servlet.http.HttpServletRequest; import org.springframework.web.context.request.RequestContextHolder; import 阅读全文
posted @ 2022-05-10 10:14 吴裕雄
解决:SqlSession[xxx] was not registered for synchronization because synchronization is not active
摘要:问题详情: spring boot项目控制台打印如下日志,但程序可正常运行,并未报错: Creating a new SqlSession SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@1909592f] was n 阅读全文
posted @ 2022-05-09 17:42 吴裕雄
解决:easymock官网进不去
摘要:网址换成这个了:https://mobile-ms.uat.homecreditcfc.cn/ 阅读全文
posted @ 2022-05-09 07:58 吴裕雄
无法打开到主机的连接。 在端口 23: 连接失败
摘要:错误写法: telnet ip:8888 正确写法: telnet ip 8888 阅读全文
posted @ 2022-05-08 10:41 吴裕雄