- 博客(9)
- 收藏
- 关注
![](https://csdnimg.cn/release/blogv2/dist/pc/img/listFixedTop.png)
原创 idea上传代码到github时遇到的Push rejected: Push to origin/master was rejected
当新创建的github仓库里已经有文件时,如果使用idea上传项目到这个仓库就会报错:Push rejected: Push to origin/master was rejected。完整步骤记录及解决方法:一、创建本地仓库:选中我们需要创建本地仓库的项目:本地仓库创建成功之后,底栏会出现 version control的栏目,然后点击右上角提交按钮,或使用快捷键 ctrl+k 提交...
2020-03-12 14:53:18
2377
1
原创 关于使用JAXB读取xml文档转换为java对象报错:类的两个属性具有相同名称com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationsExc...
java类如下:package com.example.demo;import feign.Headers;import feign.RequestLine;import lombok.Data;import javax.xml.bind.annotation.XmlElement;import javax.xml.bind.annotation.XmlRootElement;...
2020-04-09 16:51:38
2025
原创 push代码至gitee码云报错unable to access 'https://gitee.com/*/git/': The requested URL returned error: 403
第一次使用idea整合gitee插件用来push代码的时候,不小心输错了用户名或密码,导致后续push代码,一直报错:unable to access 'https://gitee.com/*/git/': The requested URL returned error: 403在确定了gitee码云里的仓库为public状态后,还出现403(没权限访问网站)的情况,基本锁定是用户名和密码填写...
2020-03-26 18:42:15
28485
8
原创 解决spring cloud 2.0.6.RELEASE 使用 zinkin 链路监控不到相应的service问题
spring cloud项目升级到spring cloud 2.0.6.RELEASE版本后,如若想继续使用zinkin链路监控相应的service,需添加如下配置: #zipkin-server地址 zipkin: base-url: http://localhost:9411 sender: type: web #接口默认全部采样 sleuth: ...
2020-03-22 16:03:26
294
原创 解决spring cloud 2.x 中hystrix没有/actuator/hystrix.stream路径而报错Unable to connect to Command Metric Stream
首先,在启动类上添加以下注解:@SpringCloudApplication@EnableHystrixDashboard或者(因为@SpringCloudApplication包括@SpringBootApplication、@EnableDiscoveryClient、@EnableCircuitBreaker)@SpringBootApplication@EnableDiscov...
2020-03-21 21:47:44
525
原创 解决win10安装docker后虚拟机启动报错:VMware Workstation 与 Device/Credential Guard 不兼容的问题。
当我们在win10系统中安装了docker后,启动虚拟机将会出现如下报错信息:VMware Workstation 与 Device/Credential Guard 不兼容。在禁用 Device/Credential Guard 后,可以运行 VMware Workstation。有关更多详细信息,请访问 http://www.vmware.com/go/turnoff_CG_DG。解决方...
2020-03-18 10:44:15
2103
3
原创 Spring Cloud Stream报错:Invalid bean definition with name:bean definition with this name already exist
当想使用 Spring Cloud Stream 让微服务自己生产的消息自己消费时,如果使用的@Input("xxx")与@Output("xxx")注解中的"xxx"名称相同,启动程序将会报错:Invalid bean definition with name 'xxx' defined in xxx: bean definition with this name already exists...
2020-03-17 22:22:42
3116
原创 解决Ajax跨域请求无法共享session的问题
原因分析: 在跨域请求当中,对于Ajax请求来说,是没有办法做到共享的,也就是说,即使我们在我们的后端controller层的添加对应的一个@CrossOrigin注解,是没有办法做到我们的session共享的。解决方法: 首先,我们需要指定对应的一个@CrossOrigin范围,也就是说,我们若什么都不指定,大家进去看下@CrossOrigin注解的源码:@CrossOri...
2020-03-09 13:01:50
621
原创 ajax跨域请求错误-CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource
当我们在本地向服务端发起ajax跨域请求报错:Access to XMLHttpRequest at 'http://localhost://**** from origin ‘null’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested res...
2020-03-09 01:50:50
16882
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人