- 博客(19)
- 资源 (1)
- 问答 (1)
- 收藏
- 关注
原创 本地代码第一次上传Git
本地git init 默认创建分支为master,gitlab默认分支名为main,需要将本地分支改为main,保持一致。
2025-02-20 09:41:27
201
原创 springboot2.7.10集成swagger3.0
验证:localhost:{port}/{context-path}/swagger-ui/index.html。
2023-03-29 11:13:50
1422
1
原创 springboot集成nacos,本地运行正常,打包报错
Springboot读取nacos配置,本地运行时正常,打包却报错Injection of autowired dependencies failed; nested exception is java.lang.IllegalArgumentException:
2022-06-09 23:55:59
1206
2
原创 2021-08-19
JAVA获取指定时间根据当前日期,获取指定日期的各种方法package com.jb.realtimeMonitor.util;import org.junit.Test;import java.text.DateFormat;import java.text.SimpleDateFormat;import java.util.Calendar;import java.util.Date;/** * Copyright @ 2021 * * @Author 张国敬 * @De
2021-08-19 17:04:28
94
原创 MySQL DATE_FORMAT() 函数
MySQL DATE_FORMAT() 函数定义和用法DATE_FORMAT() 函数用于以不同的格式显示日期/时间数据。语法DATE_FORMAT(date,format)date 参数是合法的日期。format 规定日期/时间的输出格式。可以使用的格式有:格式描述%a缩写星期名%b缩写月名%c月,数值%D带有英文前缀的月中的天%d月的天,数值(00-31)%e月的天,数值(0-31)%f微秒%H小时 (00-
2021-07-20 09:21:16
193
原创 maven打包mybatis-config.xml文件中丢失配置
问题:mybtis报错:org.apache.ibatis.binding.BindingException: Type interface com.joinbright.iot.alarmer.utils.mybatis.dao.AlarmingDataMapper is not known to the MapperRegistry.原因:项目中配有2个实体类↓打包后只有1个实体类↓分析:项目打包时配置文件为旧文件,未更新。当执行数据库操作时就会失败↓解决办法:在pom.xm
2020-12-24 16:01:46
387
1
原创 Pointofix下载、安装和使用快捷键
Pointofix是一款功能强大的屏幕画笔软件,它能够让我们在桌面屏幕中绘制任何图案、线头、箭头或打字;简单的来说Pointofix中文版将桌面当作一个电子白板,您可在上面任意绘制内容,软件默认支持五中画笔颜色,你可根据自己的需求选择不同的画笔颜色和笔触,在工具栏中的功能也是非常丰富的,支持快速圆形绘制、矩形、方框、输入文字等!下载:登陆Pointofix的官网http://www.pointofix.de/download.php,找到下面安装包pointofix180de-20180511-se
2020-09-16 11:22:07
19100
1
原创 springboot微服务中,增加了打印日志语句,日志文件里却没有相关信息
原有代码:现象:去日志文件查询,找不到对应日志。修改:结果:找到了对应的日志原因分析:应该是配置里没有此依赖相关的配置。
2020-09-03 17:42:40
606
原创 su 报错su: Authentication failure
su切换至root权限时报错su: Authentication failure,分析原因:可能是初次使用此命令,需要更新root密码。解决方法:执行sudo passwd root命令,完成后再次输入su即可切换权限。
2020-08-21 16:27:04
14090
2
原创 虚拟机访问本地mysql server报错:ERROR 1130 (HY000): Host ‘192.168.1.178‘ is not allowed to connect to this Mar
我本地的虚拟机访问本地的win10系统搭建的MariaDB报错:ERROR 1130 (HY000): Host '192.168.1.178' is not allowed to connect to this MariaDB server解决办法:打开mysql服务端,登录并执行以下命令:MariaDB [(none)]> grant all privileges on *.* to 'root'@'%'identified by 'zhbr2281'with grant opt
2020-08-21 10:04:11
379
原创 Linux安装mysql客户端时报错:E: Package ‘mariadb-client-core-10.3‘ has no installation candidate
Linux安装mysql客户端时报错:E: Package 'mariadb-client-core-10.3' has no installation candidate网上找的解决办法(https://blog.youkuaiyun.com/pl19920614/article/details/53966217/):$ apt-get update$ apt-get upgrade$ apt-get install packagename但是仍旧报错报错信息很明显,E: Coul.
2020-08-21 09:33:55
1006
idea打开项目后名称总是重复显示怎么解决掉?
2021-03-15
TA创建的收藏夹 TA关注的收藏夹
TA关注的人