- 博客(10)
- 资源 (1)
- 收藏
- 关注
原创 unknown shorthand flag: ‘n‘ in -name See ‘docker run --help‘.
1、unknown shorthand flag: ‘n’ in -nameSee ‘docker run --help’.2、unknown shorthand flag: ‘r’ in -restartSee ‘docker run --help’.解决:-name换为–name;-restart换为–restart
2022-05-31 11:30:43 6900
原创 Consider defining a bean of type ‘com.netflix.discovery.AbstractDiscoveryClientOptionalArgs‘
启动SpringCloud项目提示:Consider defining a bean of type ‘com.netflix.discovery.AbstractDiscoveryClientOptionalArgs’ in your configuration.原因:AbstractDiscoveryClientOptionalArgs需要两个依赖spring-boot-starter-web,spring-cloud-starter-netflix-eureka-client解决:添加依赖 &l
2021-11-10 16:31:31 2618 2
原创 启动nacos报Caused by: java.sql.SQLNonTransientConnectionException
启动nacos报Caused by: java.sql.SQLNonTransientConnectionException现象如下:Caused by: java.sql.SQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up. at com.mysql.cj.jdbc.exceptions.SQLError.c
2021-08-20 15:10:55 3453
原创 CentOS8使用ifconfig没有ens33网卡
CentOS8使用ifconfig没有ens33网卡现象:解决:查看托管状态nmcli n显示 disabled 则和我遇到的问题一样,如果是 enabled 就不是了开启托管nmcli n on重启systemctl restart NetworkManager
2021-08-20 13:51:48 1577 7
原创 SourceTree安装和启动报错:ssh-agent失败,错误代码-1:NullPonitException......及clone时显示git地址是一个无效的地址
**SourceTree安装和启动报错:ssh-agent失败,错误代码-1:NullPonitException…及clone时显示git地址是一个无效的地址**原因:soucetree使用了自己内置的git,无法获取我们自己下载的git解决:选择工具 ——> 选项 ——>git ——> Embedded...
2021-08-13 11:07:20 3358 6
原创 String转Json对象通过key取值
使用hutool的json工具包JSONUtil场景一: { “id” : 1, “name” : “张三” } String request = "{ "id" : 1, "name" : "张三" }"; JSONObject response = JSONUtil.parseObj(request); String id = response.getStr("id"); String name = response.getStr("name"); 场景二: [ { “id” : 1, “
2021-07-30 17:14:42 1180
原创 时间戳字符串转LocalDateTime,Date
时间戳(String)转LocalDateTimeString time = "1626016299";//2021-07-11 23:11:39String pattern = "yyyy-MM-dd HH:mm:ss";String formateDate = new SimpleDateFormate(pattern).format(new Date(Long.value(time + "000")));LocalDateTime dateTime = LocalDateTime.parse(
2021-07-30 16:43:19 2644
转载 MYSQL生成十万级的数据SQL语句
MYSQL生成大批量的数据SQL语句的编写DROP PROCEDURE IF EXISTS test1;CREATE PROCEDURE test1()BEGIN DECLARE i INT DEFAULT 1; SET AUTOCOMMIT=0; WHILE i <= 100000 DO INSERT INTO `表名` (字段1,字段2,字段3...) VALUES(i,i,i...); SET i=i+1; END WHI
2021-04-20 14:20:18 1621
原创 CentOS7.6卸载mysql报错error: Failed dependencies: libmysqlclient.so.18()(64bit) is needed by (install
CentOS7.6卸载mysql报错error: Failed dependencies: libmysqlclient.so.18()(64bit) is needed by (installed) postfix-2:2.10.1-9.el7.x86_64 libmysqlclient.so.18(libmysqlclient_18)(64bit) is needed by (installed) postfix-2:2.10.1-9.el7.x86_641、查看安装的mysql相关:rpm -qa
2021-04-07 15:23:39 2857
中国省市区2021年最新版统计数据库脚本
2022-06-07
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人