自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 Docker部署golang项目 出现 ip: i/o timeout,需要在dockerfile中增加配置,ENV GOPROXY https://goproxy.cn

在终端运行go env -w GOPROXY=https://goproxy.cn是只能决绝go build;docker build go时此方法无法解决;需要在dockerfile中增加配置,ENV GOPROXY https://goproxy.cn。

2024-01-17 10:49:25 545 1

原创 控制台报错:org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘temple

org.springframework.beans.factory.BeanCreationException:Error creating bean with name 'templetContext': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '.

2021-08-13 15:03:25 314

原创 docker 如何进入已经退出的容器container: You cannot attach to a stopped container, start it first

docker 如何进入已经退出的容器container: You cannot attach to a stopped container, start it first操作dockerdocker attach d6c45e8cc5f0或docker exec -it 03841e395ca0 bash然后我获取了以下信息:You cannot attach to a stopped container, start it first解决办法:docker ps -a.

2020-10-22 09:54:35 6552

原创 GIT或GITLAB报错REMOTE: HTTP BASIC: ACCESS DENIED,FATAL: AUTHENTICATION FAILED FOR ‘GIT或GITLAB地址’

GIT或GITLAB修改密码之后,报错REMOTE: HTTP BASIC: ACCESS DENIED,FATAL: AUTHENTICATION FAILED FOR ‘GIT或GITLAB地址’标签:gitgit报错Authentication failed for初心-杨瑞超个人博客诚邀您加入qq群(IT-程序猿-技术交流群): 757345416丨(IT-程序猿-技术交流2群): 936929828方案一:1、打开控制面板》凭据管理器》Windows凭据》选中gi...

2020-08-31 10:01:38 371

原创 社交软件有网,浏览器无法使用网络

更改电脑的默认网关需要在电脑中的网络中心——internet协议版本中进行更改,具体的方法如下:1、这里以更改笔记本电脑的默认网关为相关例子,首先在电脑桌面的的右下方选择【网络】图标。2、然后接下来的页面选择【打开网络和共享中心】。3、进入到网络中心以后,然后选择【更改适配器设置】。4、接着需要选择你要更改电脑默认网关的网络连接,这里以网络连接为具体的例子。5、接下来在弹出来的页面选择【属性】。6、进入到属性页面以后,然后点击internet协议版本4(TCP/IPv

2020-06-11 15:24:36 391

原创 ERROR - file: tracker_proto.c, line: 48, server: IP:22122, response status 2 != 0

ERROR - file: tracker_proto.c, line: 48, server: x.x.x.x:22122, response status 2 != 0tracker_query_storage fail, error no: 2, error info: No such file or directory该如何解决呢?-----------------------...

2020-05-07 09:49:51 2906 1

转载 Windows下命令行连接mysql及导入sql文件

连接本地的MySQL 格式:mysql -h主机地址 -u用户名 -p用户密码mysql -h localhost -u root -p导入数据:登录并导入:mysql -h localhost -u root -p websit < d:/back/web.sql登录后再导入:sourced:/back/web.sql转载:https://www.cn...

2020-03-03 10:18:38 195

原创 linux的一些基本操作

1.mysql远程连接:mysql -u tableName-p -h 192.168.10.102.查看服务器内存大小:grep MemTotal /proc meminfo3.查硬盘存储大小 df -h4.查看当前路径内的文件占用空间du -sh ./*5.mysql查看数据库,库的大小:use information_schema;select concat(roun...

2020-02-26 08:59:28 91

原创 sql: expected 0 arguments, got 1

sql: expected 0 arguments, got 1golang ———》gorm框架代码如下:var plist []*Worderr = dao.GetBaikeDb().Order("createTime DESC").Offset(pageNum).Limit(pageSize).Find(&plist, "id", id).Error出现的错误...

2020-01-09 10:16:03 5215

原创 mac vscode 跳转到函数之后怎么跳转回之前的位置

我是用IDEA的快捷方式,所以可以用alt+command+右方向解决办法:alt+command+右方向visual studio code怎么使用idea的快捷键1.点击文件–>首选项–>键映射扩展2.然后安装IntelliJ IDEA Key Bindings,这里我已经安装了,所以大家安装重启一下就好了...

2019-12-16 19:14:59 6168 1

原创 The import javax.servlet.jsp.JspException cannot be resolved

The import javax.servlet.jsp.JspException cannot be resolved重新更换了 Apache Tomcat 的版本,在 Eclipse 中项目报错信息:The import javax.servlet.jsp.JspException cannot be resolved。这是因为项目缺少了servlet-api.jar导致。解决办法...

2019-12-03 12:00:06 1117

原创 mongodb求最大值函数max、最小值min等函数用法

语法格式:db.getCollection('集合名称(表名)').aggregate([{$group:{_id: '$分组求值目标域(字段)',结果域名称:{$max:"$文档中域名称"}}}]);对应的sql:select max(createTime) from logo实例:最大值db.getCollection('logo').aggregate([{$group:{...

2019-11-28 11:18:52 7789

原创 mac mongodb启动失败

错误实例1.mac I CONTROL [main] Automatically disabling TLS 1.0, to force-enable TLS 1.2.Failed to set up listener: SocketException: Address already in use3.exception in initAndListen: NonExistentPat...

2019-11-25 15:01:40 581

原创 301 Moved Permanently

当使用HttpURLConnection uConnection = (HttpURLConnection) u.openConnection();uConnection.setRequestProperty("User-Agent", "Mozilla/4.0 (compatible; MSIE 5.0; Windows NT; DigExt)");访问时uri.add("htt...

2019-09-05 15:45:58 7280

原创 mybatis动态sql中foreach标签的使用

mybatis动态sql中foreach标签的使用foreach标签主要用于构建in条件,他可以在sql中对集合进行迭代。如下:  <delete id="deleteBatch">    delete from table where id in    <foreach collection="array" item="id" index="index" op...

2019-08-30 08:49:15 113

原创 在eclipse中启动tomcat加载不了项目的解决方法

如果项目未包含有WebContent文件夹,那么eclipse会自动创建WebContent文件夹,并将WebContent文件夹作为默认的读取lib以及jsp的路径,这时problems视图里会出一大堆错,因为编译器找不到lib包了。下图中的Web App Libraies就是从WebContent文件夹中加载的。解决方法:从Web Deployment Assembly...

2019-05-28 16:58:18 1780

原创 maven项目maven Dependencies下的jar包有的颜色变黑了,

解决办法:pom.xml中写了 <scope>或。删掉scope标签后不报错了。<scope>详解:https://blog.csdn.net/kimylrong/article/details/50353161Maven的一个哲学是惯例优于配置(Convention Over Configuration), Maven默认的依赖配置项中,s...

2019-05-24 09:15:59 3934 1

原创 An error has occurred. See error log for more details. org/eclipse/jdt/internal/ui/javaeditor/JavaEd

Eclipse环境出错,怎么办??An error has occurred. See error log for more details. org/eclipse/jdt/internal/ui/javaeditor/JavaEd

2018-12-25 20:53:25 5176 11

原创 The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received

781 ERROR 32080 --- [:20880-thread-2] com.zaxxer.hikari.pool.HikariPool        : HikariPool-1 - Exception during pool initialization.com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communic...

2018-10-10 16:25:28 715 1

原创 the matching wildcard is strict, but no declaration can be found for element 'context:annotation-con

  the matching wildcard is strict, but no declaration can be found for element 'context:annotation-config' 找了半天,就是因为少了约束。最后用这个解决了!!&lt;?xml version="1.0" encoding="UTF-8"?&gt;&lt;beans xml...

2018-10-08 23:15:02 7594 4

原创 使用produces = "text/html;charset=utf-8",出现406错误

使用produces = "text/html;charset=utf-8",出现406错误 HTTP Status 406 -type Status reportmessagedescription The resource identified by this request is only capable of generating responses with char...

2018-09-19 21:42:21 5104 6

原创 here is no getter for property named 'xxx' in 'class java.lang.String' 或 'class java.lang.Integer'

Caused by: org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'phone' in 'class java.lang.String'    at org.apache.ibatis.reflection.Reflector.getGetInvoker(Refle...

2018-09-19 16:57:05 2026

原创 向大神求助spring问题

//spring创建出问题//XML--------------------------------------------------------------------------xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xmlns:p="http://www.springframework.org/schem

2018-01-22 09:19:36 218

空空如也

空空如也

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

TA关注的人

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