自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 SQL语句什么是左连接、右连接、内连接?

1、左连接以左表为基础,根据ON后给出的两表的条件将两表连接起来。结果会将左表所有的查询信息列出,而右表只列出ON后条件与左表满足的部分。左表(table1)全部保留,右表(table2)关联不上用null表示。SELECT * FROM table1 LEFT JOIN table2 ON table1.a=table2.b2、右连接与左连接相反。右表(table2)全部保留,左表(table1)关联不上的用null表示。SELECT * FROM table1 .

2021-10-17 01:16:20 8982 2

原创 Linux终端.sh权限不够解决方法

错误如下图解决方法先授权,授权完再次执行授权:chmod 777 [文件名]

2021-10-14 19:22:58 6180

原创 解决端口被占用问题

错误:Identify and stop the process that's listening on port 10000 or configure this application to listen on another port.解决方法:1、window+R打开doc窗口2、输入命令netstat -aon|findstr "被占用的端口号"netstat -aon|findstr "10000"3、输入命令taskkill /pid 上一条命令请求到的代号/f...

2021-10-13 09:06:31 1086

原创 vue设置网站的标题和图标

实现效果如下图编辑public/index.html文件

2021-10-11 19:05:42 266

原创 SpringCloud之Zuul

Zuul是Netflix开源的微服务网关,它可以和Eureka、Ribbon、Hystrix等组件配合使用。Zuul的核心是一系列的过滤器。1、添加依赖<dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-netflix-zuul</artifactId></dependency&

2021-10-08 00:06:42 69

原创 SpringCloud之Feign

Feign主要是在消费者项目中进行伪装1、导入依赖<dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-openfeign</artifactId></dependency>2、开启Feign@EnableFeignClients//开启feign@SpringClo

2021-10-07 11:31:28 92

原创 SpringCloud之Hystrix

Hystrix是一种保护机制,即熔断器。服务的消费者请求服务担心返回异常,所以需要在消费者一方配置自己的降级处理,所以操作在消费者一方。1、引入Hystix依赖<dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-netflix-hystrix</artifactId></depe

2021-10-07 00:13:29 172

原创 什么是负载均衡Ribbon

什么是负载均衡?一个烧烤店,因为某网红的打卡,导致来品尝的顾客大量增多,烤串师傅小陈忙到自闭。于是烧烤店老板又新招了三四个烤串师傅来和小陈一起烤串,分担小陈的压力,这样一来,小陈一下子轻松了许多,这就是负载均衡。负载均衡(Load Balance):分摊到多个操作单元上进行执行,例如Web服务器、FTP服务器、企业关键应用服务器和其它关键任务服务器等,从而共同完成工作任务。...

2021-10-06 15:12:39 119

原创 SpringCloud之编写EurekaServer

1、添加依赖<!-- 导入依赖 --><dependencies> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-netflix-eureka-server</artifactId> </dependency></d

2021-10-05 22:49:52 132

原创 解决“run `npm audit fix` to fix them, or `npm audit` for details”

第一步:npm audit fix第二步:npm audit fix --force第三步:npm audit

2021-09-24 20:17:55 327

原创 Java定义数组的几种方式

//第一种String []test1 = new String[100];//第二种String []test2 = new String[]{"1","23","456"};//第三种String []test3 = {"1","23","456"};

2021-09-22 08:59:51 312

原创 v-if判断字符串是否相等

判断两个字符串是否相等试了equals方法,但是行不通后来想到了平替的includes()方法<div v-if="a.includes('1')"></div>

2021-09-18 01:51:13 4334 3

原创 解决redis端口被占用问题

首先查看一下redis的进程ps -ef|grep redis找到正在使用这个端口的进程,并“杀死他”kill -9 端口号-9 表示“无条件终止”,kill -9表示强制杀死该进程。

2021-09-17 09:51:28 2314

原创 redis的开启与关闭

开启redisredis-server /redis.conf的路径连接redis-cli -h ip地址 -p 端口号如果一直不能连接,关闭防火墙,关闭shell再重新打开sudo systemctl stop firewalld.service关闭redisshutdownexit

2021-09-17 09:33:05 255

原创 Linux安装vim编辑器

1、yum下载vimyum -y install vim*2、安装完之后开始配置vimvim /etc/vimrc3、打开文件后,添加如下代码set nu " 设置显示行号set showmode " 设置在命令行界面最下面显示当前模式等set ruler " 在右下角显示光标所在的行数等信息set autoindent " 设置每次单击Enter键后,光标移动到下一行时与上一行的起始字符对齐syntax on " 即设置语法检测,当编辑C或者Shell脚本时,

2021-09-14 22:58:05 2469

原创 解决idea包名合并问题

idea下,空包名默认合并在了一起,如下图。解决办法:取消勾选“Compact Middle Packages”,如下图 。

2021-09-13 15:38:35 7247

原创 解决Linux系统ip乱码问题

先说一下我遇到的问题,在Linux系统中想查看一下ip,却查出来一行类似于乱码的东西,如下图。解决方法:切换到root用户,在终端编辑“ifcfg-eth0”文件,如下图。vi /etc/sysconfig/network-scripts/ifcfg-eth0(注意!!!vi后面要加空格)把ONBOOT的值改成yes,如下图。...

2021-09-13 10:47:07 1248

原创 SpringBoot热部署

1、在pom.xml中添加依赖<!--热部署--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <scope>runtime</scope> <optional>t

2021-09-09 20:17:06 69

原创 SSM实现分页功能

使用MyBatis分页插件PageHelper1、在pom.xml中添加依赖,把PageHelp的jar包导到项目中<dependency> <groupId>com.github.pagehelper</groupId> <artifactId>pagehelper</artifactId> <version>5.1.2</version></dependency>2、在

2021-08-31 17:01:46 2207

原创 CSS设置背景图片

background-image属性在最外层放一个<div>标签,用来放background-image属性。记得给<body>标签设置margin属性和padding属性,不然背景图片的边框会留白。<style> .wallpaper{ background-image: url("../images/a.jpg"); width: 100%; height:100%; position:fixed; background-size:

2021-08-27 19:26:45 882

原创 Math.round()方法取整规则

在参数上加0.5,再向下取整(取相邻且小于这个数的整数)。System.out.println("Math.round(1.4)="+Math.round(1.4));System.out.println("Math.round(1.5)="+Math.round(1.5));System.out.println("Math.round(1.6)="+Math.round(1.6));System.out.println("Math.round(-1.4)="+Math.round(-1.4))

2021-08-24 09:03:37 461

原创 i++和++i的区别

i++和++i的意思都是自增1,都等价于i=i+1++i:先自增再进行Java运算i++:先进行Java运算再自增int i;i=0;System.out.println(++i);i=0;System.out.println(i++);

2021-08-22 22:34:41 93

原创 JavaScript购物车全选

<html> <head> <meta charset="UTF-8"> <title></title> </head> <script src="js/jquery-1.7.1.min.js"></script> <body> <table> <tr> <td> <input type="checkbox" .

2021-08-18 16:56:50 1110

原创 JavaScript省市区三级联动

<html> <head> <meta charset="UTF-8"> <title></title> <script src="js/jquery-1.7.1.min.js"></script> <script> $(function(){ var pro_data = ['内蒙古自治区',"山东省"] var city_data = [ ['呼伦.

2021-08-18 15:55:00 173 1

原创 JavaScript轮播图

如何实现轮播效果先上完整代码!<body> <div> <img id="imgs"> </div></body><script> window.onload = function(){ var i = 0; var images = ['img/a1.JPG','img/a2.JPG']; window.setInterval(function(){ var imgs = document.

2021-08-17 16:31:02 205

原创 Java如何调用百度图像识别接口

先上代码public class example { public static void main(String[] args) { String url = "https://**********"; try { String filePath = "D:\\testGoods\\a.png"; byte[] imgData = FileUtil.readFileByBytes(filePath);

2021-08-16 16:29:24 818

原创 SSM搭建框架(Spring,SpringMVC,Mybatis)

pom.xml<properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <maven.compiler.source>1.8</maven.compiler.source> <maven.compiler.target>1.8</maven.compiler.target> <s.

2021-06-30 11:08:03 89

原创 SSM搭建环境(Spring,SpringMVC,Mybatis)

目录搭建项目1、创建maven项目2、添加运行环境搭建项目1、创建maven项目在idea下,依次点击File -> New ->Project点击左侧菜单栏里的Maven,然后把“Create from archetype”这个单选框勾上(黄笔标注),然后选择rachetype-webapp(红笔标注),一定要先勾再选。确认选好了点击Next。起一个炫酷的项目名,选择一个稳妥的路径,点击Next,然后点击Finish,项目就创建好了。2、添加运行

2021-06-28 20:43:44 182

空空如也

空空如也

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

TA关注的人

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