自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

转载 linux 服务器之间文件互传相关命令

linux 将一个服务器上的文件或者文件夹复制到另一台服务器上

2022-09-21 17:56:04 3592 1

原创 本地项目上传至git码云步骤

本地项目上传至Git码云步骤,附图文

2022-07-15 10:26:11 250

原创 Error: Invalid or corrupt jarfile

问题描述:Linux上运行jar包报错Error: Invalid or corrupt jarfile发现问题:jar包大小显示为0输入:df -h,发现磁盘空间100%解决方法:清理空间,重新上传jar包,运行成功

2022-02-18 18:11:28 910

转载 本地项目上传到git的详细步骤**

本地项目上传到git的详细步骤先进入项目文件夹,通过命令git init 把这个目录变成git可以管理的仓库 git init把文件添加到版本库中,使用命令git add .添加到暂存区里面去,不要忘记后面的小数点“.”,意为添加文件夹下的所有文件git add .用命令git commit告诉Git,把文件提交到仓库。引号内为提交说明git commit -m 'first commit'关联到远程库git remote add origin 你的远程库地址 //如:

2022-02-17 17:06:35 182

转载 MongoDB安装

Windows10,安装MongoDB,步骤如下:一、下载MongoDB官方下载地址:https://www.mongodb.com/try/download/community,根据自己需求下载相应版本,我使用的是社区版。二、 安装、配置MongoDB打开安装文件,根据实际情况配置数据存储目录、日志存储目录等信息即可,安装过程比较简单。中间主要是选择 Custom 自定义安装路径修改下,比如我改成了 E:\Mongodb\data\然后不断“下一步”,安装至结束。在浏览器中输入地址:h

2022-02-14 16:22:59 272

原创 mysql分区间统计

SELECT count(1) as counts, ELT(INTERVAL(score, 0, 20, 40, 60, 80, 100), '0-20', '20-40', '40-60', '60-80', '80-100') as score_level FROM bde_student_score GROUP BY score_level

2022-01-20 11:31:10 629

原创 springboot上传多个文件,以对象接收

package com.test.model.request;import io.swagger.annotations.ApiModelProperty;import lombok.Data;import org.springframework.web.multipart.MultipartFile;import java.io.Serializable;import java.util.ArrayList;import java.util.List;@Datapublic clas

2021-12-17 18:09:56 680

原创 SpringBoot集成WebSocket(原生注解)

1、加入依赖<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-websocket</artifactId> <version>1.3.5.RELEASE</version></dependency>2、编写配置类:开启WebSocket服务端的自动注册。

2021-10-12 17:37:47 490

原创 window CMD 查找端口被占用

window CMD 查找端口被占用查找netstat -ano (查看所有端口占用情况)netstat -aon|findstr 具体端口号 (查看指定端口占用情况)示例:C:\Users\Alice>netstat -aon|findstr 9989 TCP 0.0.0.0:9989 0.0.0.0:0 LISTENING 8884 TCP [::]:9989

2021-09-27 15:05:03 102

转载 git基本命令

一、克隆git clone address,clone到本地,address为需要clone的地址git clone [email protected]:infosec-bg/contest.git二、提交1、 git status,该命令可以查看文件状态(可不执行,只是用于查看文件状态)git status2、git add,提交所有变化 ( -A 命令区分大小写)git add .3、git commit -m '更新说明',提交到本地仓库git commit -m '1.1.0代码更新

2021-09-24 18:04:16 61

原创 Maven 打包提示出错Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test

报错:Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test (default-test) on project contest: There are test failures.Please refer to D:\test\project\contest\target\surefire-reports for the individual test results.Please refer

2021-09-23 14:08:53 65

原创 java 8 List<对象>转为List<String>

方式一:List<String> ids = userList.stream().map(User::getId).collect(Collectors.toList());方式二:List<String> ids = users.stream().map(e -> e.getId()).collect(Collectors.toList());

2021-09-09 15:00:26 11242

原创 Caused by: java.nio.charset.MalformedInputException: Input length = 1

报错:无法启动项目Caused by: java.nio.charset.MalformedInputException: Input length = 1原因:application.yml文件编码格式有问题,改为UTF-8application.yml文件有问题,直接把其他类型的文件后缀名改为yml可能导致生成的文件有问题,可以把application.yml中的内容备份,然后删除application.yml文件,再新建一个application.yml文件,将备份的内容拷贝进去再运行项目

2021-09-08 15:09:19 3791 1

原创 Logging system failed to initialize using configuration from ‘classpath:log4j2.xml‘

报错:Logging system failed to initialize using configuration from 'classpath:log4j2.xml'方法一: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter</artifactId&gt

2021-09-07 15:22:57 6014 1

转载 ERR! Cannot read property ‘match‘ of undefined

报错信息:npm ERR! Cannot read property 'match' of undefinednpm ERR! A complete log of this run can be found in:npm ERR! C:\Users\user\AppData\Roaming\npm-cache\_logs\2018-08-06T01_49_46_486Z-debug.log解决方式:清楚缓存npm cache clear --force执行命令后无效,依旧报错之

2021-08-31 16:12:29 322

转载 java提取图片文字

pom.xml文件添加依赖<dependency> <groupId>net.sourceforge.tess4j</groupId> <artifactId>tess4j</artifactId> <version>3.2.1</version></dependency>准备文件和图片java测试代码public static void main(String[] args

2021-08-30 17:00:15 3257

转载 nginx反向代理中proxy_set_header的含义

1、proxy_set_header设置的请求头是传递给后端服务器的2、ngixn反向代理中proxy_set_header的设置: proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto

2021-07-27 14:13:24 4988

转载 idea Debug启动半天没反应

使用idea Debug启动项目10分钟都没启动好项目,但使用run可正常启动。解决方法:去掉“方法”的断点备注:使用ctrl + shift + F8 可打开断点管理界面

2021-07-13 17:04:38 248

原创 mybatis执行多条带;(分号)的sql语句报错

报错信息如下:### The error occurred while setting parameters### SQL: CREATE DATABASE IF NOT EXISTS test; USE test;### Cause: java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server

2021-07-12 17:47:17 519

原创 求文本相似度

import java.text.DecimalFormat;import java.util.HashMap;import java.util.Map;import java.util.Set;/** * 文本相似度 * * @Author dn * @Date 2020/7/7 10:43 * @Version 1.0 */public class SimilarUtil { /** * 求余弦相似度 * @param source 文本原内容字符串

2021-07-07 10:25:20 54

原创 mybatis-plus代码生成器

import com.baomidou.mybatisplus.annotation.DbType;import com.baomidou.mybatisplus.core.toolkit.StringPool;import com.baomidou.mybatisplus.generator.AutoGenerator;import com.baomidou.mybatisplus.generator.InjectionConfig;import com.baomidou.mybatisplus.

2021-07-05 16:37:09 68

原创 通过xml可以直观的解析GPU信息与进程信息

通过nvidia-smi命令直接输出xml格式文本,通过xml可以直观的解析GPU信息与进程信息。 /** * 获取gpu信息(暂时只支持nvidia-smi) * * @return gpu信息集合 * @throws DocumentException xml解析错误 */ private List<GPUInfo> convertXmlToGpuObject() throws DocumentException {

2021-06-17 16:47:23 474

原创 websocket

websocketimport org.springframework.context.annotation.Bean;import org.springframework.context.annotation.Configuration;import org.springframework.web.socket.server.standard.ServerEndpointExporter;/** * @Description: 开启WebSocket支持 */@Configuration

2021-06-17 16:26:04 66

原创 java中以特殊符号分隔的字符串和List相互转换

举例:已逗号为例1、将逗号分隔的字符串转换为List 参考:https://www.cnblogs.com/JiangWJ/p/10802606.htmlString str = "a,b,c"; List<String> list= Arrays.asList(str.split(","));2、将List转换为逗号分隔的字符串(1) 利用Guava的Join...

2020-04-22 14:58:30 921

原创 mybatis查询返回多个List对象,List<String>和一个实体类对象的List

实体类:@Datapublic class EvaluateRequest { private String id; private List<String> clazzIdList = new ArrayList<>(); private List<CourseTypeView> courseList = new ArrayLis...

2020-04-17 16:07:15 2880 2

原创 mysql使用group by进行分组排序

链接: https://www.cnblogs.com/john8169/p/9780471.html示例:根据能力标签分组,然后组内按分数排序select if(@c=capability_id,@r:=@r+1,@r:=1) as rank, @c:=capability_id capability_id, sc.*from bde_student_capability sc, (...

2020-04-14 18:14:10 426

原创 org.apache.ibatis.type.TypeException: Error setting non null for parameter #3 with JdbcType null .

org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.type.TypeException: Could not set parameters for mapping: ParameterMapping{property='id', mode=IN, javaType=class java....

2020-04-14 10:46:55 5872

空空如也

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

TA关注的人

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