自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

转载 Cannot retrieve metalink for repository: epel/x86_64. Please verify its path and try again

yum错误Cannot retrieve metalink for repository: epel/x86_64. Please verify its path and try again

2022-08-17 16:47:42 4073 1

原创 windows server 2008 r2升级mysql

mysql5.7.34升级至5.7.38

2022-07-05 16:23:24 420

原创 vue循环for里使用延时

vue for setTimeout 循环 延时

2022-06-30 17:38:26 3791

原创 Tez session hasn‘t been created yet. Opening session

将hive任务中的reduce设置为100,如下set mapred.reduce.tasks=100;

2021-11-02 10:30:58 2937

原创 failed on connection exception: java.net.ConnectException: 拒绝连接

处理方法:启动resourcemanager。命令:yarn --daemon start resourcemanager如果出现failed on connection exception: java.net.ConnectException: 连接超时。关闭防火墙即可。

2021-10-19 09:50:32 4654

原创 xsync文件

1、写好xsync.sh脚本#!/bin/bash#1. 判断参数个数if [ $# -lt 1 ]then echo Not Enough Arguement! exit;fi#2. 遍历集群所有机器for host in hadoop101 hadoop102 hadoop103do echo ==================== $host ==================== #3. 遍历所有目录,挨个发送 for file in $@ do

2021-10-15 10:18:14 747

原创 IDEA中maven无法自动导入本地下载的依赖

删除本地导入报中的_remote.repositories这个文件即可导入。

2021-09-06 11:03:28 113

原创 虚拟机linux系统centos7安装Mysql5.7

1、查看Linux版本命令:cat /etc/redhat-release2、查看是否安装了mysql命令:rpm -qa | grep mysql我的是才安装的centos7,所以没有安装过mysql。如果安装过了mysql必须要先卸载。是否安装了mariadb命令:rpm -qa | grep mariadb卸载mariadb命令:rpm -e --nodeps mariadb文件名3、去mysql网站下载mysql文件官网社区版下载地址:https://dev.mysql.

2021-08-13 11:09:57 290

原创 Error starting Tomcat context....Error creating bean with name ‘servletEndpointRegistrar‘ define

Error starting Tomcat context…Error creating bean with name ‘servletEndpointRegistrar’ defined in class path resource…Failed to configure a DataSource: ‘url’ attribute is not specified and no embedded datasource could be configured.错误类型:Error starting To

2021-07-23 11:10:16 1333

原创 等高瀑布流页面布局

<template> <div id="imt"> <div class="img-item"> <img src="../images/1.jpg"> </div> <div class="img-item"> <img src="../images/2.jpg"> </div>

2020-12-08 14:59:33 307

原创 获取当前坐标时间

ZonedDateTime now = ZonedDateTime.now();System.out.println(now);得到的时间为:2020-10-27T11:53:17.875+08:00[Asia/Shanghai]

2020-10-27 11:55:38 130

原创 ObjectMapper数据转化的一个API,对象和JSON相互转化

public class ObjectMapperUtil { // 1、定义mapper 对象 private static final ObjectMapper OBJECT_MAPPER = new ObjectMapper(); // 2、将对象转化为JSON public static String toJson(Object object){ try { return OBJECT_MAPPER.writeValueAs

2020-10-16 14:58:22 230

原创 flex的样式使用

元素与主轴的对齐方式/* 定义flex容器 */ display: flex; /* 设置容器内部元素的排列方向 row:定义排列方向,从左到右 row-reverse:从右到左 column:从上到下 column-reverse:从下到上 */ flex-direction: row-reverse; /* nowrap:不换行 wrap:换行 */ flex-wrap: nowrap; /* 设置元素在主轴上的对齐方式 flex-start

2020-09-28 16:54:57 223

原创 UNI-APP的事件处理

<template> <view class="container"> <text>{{title}}</text> <input type="text" :value="title" @input="change" /> </view></template><script> export default { data() { return { title: '12345'

2020-09-27 15:48:16 729

原创 通用跳转页面代码

@RequestMapping("{page}")public String page(@PathVariable String page) { return page;}

2020-08-14 17:03:26 156

原创 IPUtils获取IP地址的一个工具类

import lombok.extern.slf4j.Slf4j;import org.slf4j.Logger;import org.slf4j.LoggerFactory;import org.springframework.util.StringUtils;import org.springframework.web.context.request.RequestContextHolder;import org.springframework.web.context.request.Serv

2020-08-14 16:42:24 726

原创 定义一个全局异常处理类GlobalException,对控制层出现的异常进行统一处理

```javaimport org.springframework.web.bind.annotation.ControllerAdvice;import org.springframework.web.bind.annotation.ExceptionHandler;import org.springframework.web.bind.annotation.ResponseBody;/*定义一个全局异常处理类,对控制层出现的异常进行统一处理 */@ControllerAdvicepu.

2020-08-14 16:25:41 746

原创 在创建sringboot项目时常用的application.yml文件配置,具体配置需要结合自己的项目需要而定。

#server配置server: port: 8080 #设置端口 servlet: context-path: / #监听端口路径,默认为 /#spring配置spring: datasource: #数据库配置 driver-class-name: com.mysql.cj.jdbc.Driver #配置连接池 url: jdbc:mysql://127.0.0.1:3306/jtsys?serverTimezone=GMT%2B8&useUnicod

2020-08-14 15:15:39 410

原创 VUE项目的打包与发布

VUE项目的打包与发布1、在webstrom命令行中输入:npm run build2、在输入:npm install -g test013、输入:test01 dist4、在浏览器中输入: http://localhost:5000 ,可以访问到页面

2020-08-12 16:38:39 200

原创 密码使用MD5进行加密

密码使用MD5进行加密后在存入数据库String source = entity.getPassword(); String salt = UUID.randomUUID().toString(); SimpleHash sh = new SimpleHash( "MD5",//加密方式MD5 source, salt, 1 //加密次数

2020-08-12 16:25:51 56

原创 使用webstrom创建VUE项目

创建VUE项目1、在安装好nodejs的情况下,在webstrom命令行中输入npm install -g vue-cli2、再次输入vue init webpack vueTest(项目名字)(项目名称)(项目说明)(作者)3、cd vueTest 打开项目4、npm install 进行npm的安装5、npm run dev 运行起来6、在浏览器中输入localhost:8080即可看到下面的页面,就是项目创建成功了...

2020-08-12 16:14:18 173

原创 自定义一个类JsonResult,将数据封装作为传输到页面使用

从数据库查询出的数据返回到页面中public class JsonResult implements Serializable { private int state = 1; private String message = "ok"; private Object data;}

2020-08-12 15:54:33 315

原创 异常提示代码

一般异常提示代码public class ServiceException extends RuntimeException{ private static final long serialVersionUID = 8403444391793311821L; public ServiceException(){super();} public ServiceException(String message){super(message);} public ServiceE

2020-08-12 15:51:07 155

原创 springboot中使用static静态文件中的内容

在pom.xml文件中添加一下代码即可```yaml<resources> <resource> <directory>src/main/reaources</directory> <includes> <include>**/*.properties</include>

2020-08-12 15:46:08 760 1

空空如也

空空如也

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

TA关注的人

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