- 博客(37)
- 资源 (2)
- 收藏
- 关注
原创 spring cloud gateway出现type=Service Unavailable, status=50【已解决】
问题背景,使用gateway作为网关整合nacos,出现服务无法到达的问题。导入成功后,访问正常。
2022-11-23 09:24:45
387
原创 Cause: java.lang.IndexOutOfBoundsException: Index: 5, Size: 5【已解决】
解决Cause: java.lang.IndexOutOfBoundsException: Index: 5, Size: 5
2022-08-16 09:40:02
2958
原创 Unsatisfied dependency expressed through field ‘baseMapper‘; nested exception is org.springframewor
在springboot启动类上加上dao或者mapper@MapperScan("com.zhao.blog.mapper")然后就正常启动
2021-09-20 22:10:45
1157
原创 Cannot resolve method ‘isBlank‘ in ‘StringUtils‘
今天在使用mybatis-plus的时候发现的问题# 最后发现多了一个包删除就行以下是我自己的配置<!-- mybatis-plus --> <dependency> <groupId>com.baomidou</groupId> <artifactId>mybatis-plus-boot-starter</artifactId> <
2021-09-19 22:13:41
2898
原创 Webpack & Webpack-cli 安装成功后查看 webpack -v报错
打开环境变量在系统变量和用户变量的path都配置再次安装再测试一下
2021-07-22 22:42:19
300
原创 centos /home/ 目录下的中文名文件夹改为英文
$ export LANG=en_US$ xdg-user-dirs-gtk-update在弹出的窗口中询问是否将目录转化为英文路径,同意并关闭
2021-07-14 18:13:09
583
原创 mybatis -plus插入mysql数据,数据库时间比系统时间差8小时
发现插入的数据有8个小时的时差把数据库连接的url改为url: jdbc:mysql://localhost:3306/mybatis_plus?useSSL=false&useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai即可最后测试正常PS:以前用的是时区用的是UTC...
2021-07-12 15:39:52
944
原创 解决mybatis-plus日期显示为null的问题
先上mybatis-plus版本最近发现在数据库自动填充的日期类型,使用mybatis-plus的查询操作,发现一直为nulll解决办法把实体类里面的Date改为LocalDateTime@TableId(type = IdType.INPUT ) private Long id; private String name; private Integer age; private String email; private LocalDateTime cr
2021-07-12 15:00:04
2420
原创 Python期末课程设计
python课程设计,主要用xpath,和mongodb存取数据会词道云创新功能,不知道的自己百度下为部分代码import requests# mongodbimport pymongoimport self as self# 解析html的库from lxml import html, etreeimport jiebafrom PIL import Imagefrom wordcloud import WordCloudheaders = { 'User-Ag
2021-06-21 23:03:16
3626
原创 Android Studio安装flutter插件后找不到设备(模拟器)
运行flutter doctor发现没有sdk设置一下flutter config --android-sdk="D:\Program Files (x86)\environment\Android\Sdk" # 换为你的安卓sdkflutter config --android-studio-dir = "D:\Program Files (x86)\software\Android\Android Studio" # 换为你的as安卓路径切记要加等号,新版flutter好像不支持flu
2021-06-18 18:05:00
815
1
原创 python获取页面编码
首先安装requests库和 bs4库# 获取页面link ="http://www.santostang.com/"headers = { 'User-Agent':'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36 QIHU 360SE'}r = requests.get(link,headers=headers)
2021-05-17 10:29:59
380
原创 python报错bs4.FeatureNotFound: Couldn‘t find a tree builder with the features you requested: lxml.
soup = BeautifulSoup(r.text,"lxml")改为soup = BeautifulSoup(r.text,"html.parser")完美解决
2021-05-15 21:23:16
163
原创 解决sprinboot项目连接数据库出现Access denied for user ‘‘@‘localhost‘ (using password: NO)
打开yml配置注意不要写成 data-password是 password!!!
2021-04-18 10:52:09
239
原创 导入发现import ‘package:english_words/english_words.dart‘;
找到文件加入下面代码dependencies: flutter: sdk: flutter # The following adds the Cupertino Icons font to your application. # Use with the CupertinoIcons class for iOS style icons. cupertino_icons: ^1.0.2 english_words: ^3.1.0//加入的代码在控制台输入
2021-03-23 17:17:11
1563
原创 Swagger-ui.html界面打开报404错误
首先检查了自己springboot版本发现自己用的swagger是用的是2.37自己在maven仓库导入的swagger是最新3.0.0版本的发现出现了404最后降级为2.7.0就完美访问了 <!-- https://mvnrepository.com/artifact/io.springfox/springfox-swagger2 --> <dependency> <groupId>io.springf
2021-03-15 17:32:36
1087
原创 The emulator process for AVD Pixel_API_30 was killed.
打开show on disk复制avd文件到SDK目录下在修改一下配置文件path路径换为复制后的avd路径
2021-03-06 22:38:28
2449
1
原创 成功解决org.yaml.snakeyaml.scanner.ScannerException: mapping values are not allowed
出现这种情况,看图片注意空格就行
2021-03-03 21:14:35
2632
1
原创 解决:‘git‘ 不是内部或外部命令,也不是可运行的程序
当我们有时候不想使用快捷方式操作idea时,我们可以使用git命令有时候会出现这样的情况,这是因为没有配好git的环境变量找到git的安装目录在环境变量中配置一下git在这里插入图片描述在path输入刚才的路径...
2021-02-06 01:12:17
8224
原创 宝塔面板连接阿里云服务器
使用Xshell连接阿里云服务器连接方法就不侮辱各位了。。。。打开阿里云服务器控制台开放安全组在xshell(centos为例)先在服务器里面安装宝塔面板Centos安装命令:yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.shUbuntu/Deepin安装命令:wget -O install.sh h
2021-02-02 20:57:29
5474
原创 yaml基本语法
#基础语法 # 普通的key-values name: stevezhao # 对象student: name: stevezhao age: 18# 行内对象students: {name: steve,age: 18}# 数组pets: -cat -dog -pigyaml可以给实体类赋值松散绑定:比如yaml中的first-name和实体类中的firstName是一样的建议使用yamlJSR303@NotNull(message="名字不能
2021-01-31 11:16:35
6039
原创 C++课程设计学生成绩管理系统
学生成绩管理系统,采用分模块开发list.cpp#include<iostream>#include<fstream>#include<stdio.h>#include<cstdlib>#include<cstring>#include<iomanip>#include"list.h"using namespace std;List::~List(){ pHead=NULL; pNext=NULL
2021-01-27 19:46:49
8697
4
原创 如何使用高校邮箱申请Jetbrains全家桶
在Jetbrains官网注册https://www.jetbrains.com/shop/eform/students2 注册成功后,邮箱会收到一封信,点开后,再点开箭头所指示的然后就可以开启白嫖生活了!!!下面以申请IDEA为例:添加链接描述https://www.jetbrains.com/products/#type=ide安装就不说了,有手就行.....安装好后,提示你登录账号使用刚才在Jetbrains官网注册的账号密码登录即可下面说怎么用IDEA写第一个Java程序这
2021-01-19 18:21:06
7765
2
原创 【IDEA】Maven项目pom.xml依赖包下载太慢
解决IDEA下载maven依赖过慢问题找到setting.xml配置文件修改为<?xml version="1.0" encoding="UTF-8"?><settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.a
2021-01-16 21:42:49
6656
原创 idea报错URI is not registered (Settings | Languages & Frameworks | Schemas and DTDs)
##1.打开idea##2.找到##3.在URI加入http://mybatis.org/dtd/mybatis-3-config.dtd##4.点击保存就OK了
2020-11-13 11:04:47
6544
原创 服务器配置tomcat
#下载tomcathttps://tomcat.apache.org/download-80.cgi#通过xtfp上传到服务器#在服务器中解压tar -zvxf apache-tomcat-8.5.59.tar.gz##解压完成#启动./startup.sh#打开安全组#测试显示成功!!!
2020-11-11 00:16:32
6435
原创 云服务器配置JDK1.8
#先去Oracle下载jdkhttps://www.oracle.com/java/technologies/javase/javase-jdk8-downloads.html###1.下载完成后,通过xftp上传到服务器###2.解压tar -zxvf jdk-8u271-linux-x64.tar.gz#解压完成后,配置Java环境##配置环境变量vi /etc/profile##在段尾加入export JAVA_HOME=/usr/local/java/jdk1.8.0_
2020-11-11 00:00:29
9004
原创 云服务器安装MySQL环境
先查看自己电脑死否安装mysql##查看是否还有mysql软件:rpm -qa|grep mysql###1.查看系统中是否以rpm包安装的mysql:[root@localhost opt]# rpm -qa | grep -i mysqlMySQL-server-5.6.17-1.el6.i686MySQL-client-5.6.17-1.el6.i686####2.卸载myql[root@localhost local]# rpm -e MySQL-server-5.6.17-1.
2020-11-10 09:49:28
6392
原创 云服务器MySQL 8.0开启远程连接
MySQL 8.0.5开启远程连接###连接数据库mysql -uroot -p ###2.在mysql8版本更新用户密码需要加入加密规则 wtth mysql_native_password# 查看mysql插件信息show pluginsalter user ‘root’@‘localhost’ identified with mysql_native_password by ‘数据库密码’;###3.修改root用户的host为’%’# 选择mysql库use mysql;
2020-11-09 23:41:03
6556
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人