【新建Spring Boot项目】Connect to 127.0.0.1:1087 [/127.0.0.1] failed: Connection refused

2023-05-16

背景

我在新建微服务项目的时候,使用gradle报错Connect to 127.0.0.1:1087 [/127.0.0.1] failed: Connection refused 。然后我检查了一下IDEA的代理设置,没有使用代理。

报错信息

A problem occurred configuring root project 'microcloud'.
> Could not resolve all artifacts for configuration ':classpath'.
   > Could not resolve org.springframework.boot:spring-boot-gradle-plugin:2.2.5.RELEASE.
     Required by:
         project :
      > Could not resolve org.springframework.boot:spring-boot-gradle-plugin:2.2.5.RELEASE.
         > Could not get resource 'https://maven.aliyun.com/repository/public/org/springframework/boot/spring-boot-gradle-plugin/2.2.5.RELEASE/spring-boot-gradle-plugin-2.2.5.RELEASE.pom'.
            > Could not GET 'https://maven.aliyun.com/repository/public/org/springframework/boot/spring-boot-gradle-plugin/2.2.5.RELEASE/spring-boot-gradle-plugin-2.2.5.RELEASE.pom'.
               > Connect to 127.0.0.1:1087 [/127.0.0.1] failed: Connection refused (Connection refused)

* Try:
Run with --info or --debug option to get more log output. Run with --scan to get full insights.

从Connect to 127.0.0.1:1087 中可以看出,应该是我之前设置了什么代理服务器

解决办法

编辑用户目录下的.gradle/gradle.properties文件。

vim ~/.gradle/gradle.properties

删除或者注释systemProp.http与systemProp.https开头的配置。
在这里插入图片描述
然后问题就成功解决了。
在这里插入图片描述

参考

https://www.jianshu.com/p/0c1efb95178a

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

【新建Spring Boot项目】Connect to 127.0.0.1:1087 [/127.0.0.1] failed: Connection refused 的相关文章

随机推荐

  • 【视频教程】MAME0.238配置分享

    视频链接 https www bilibili com video BV15q4y1B7Hn 附件下载 百度网盘分享 链接 https pan baidu com s 1rsBdRn99 KWjhRpPrGBmfw 提取码 4ge5CSDN
  • Netty解决粘包拆包问题,Netty使用自定义编解码器解决粘包拆包问题

    文章目录 一 什么是粘包拆包二 粘包拆包实例1 Server端2 Client端3 测试一下 三 解决粘包拆包的方案四 使用自定义编解码器解决粘包拆包问题1 定义协议包2 编解码器3 server端4 client端5 测试一下 一 什么是
  • vim表格格式化插件vim-table-mode

    简介 一个很棒的自动表格创建器和格式化程序 xff0c 允许您在键入时创建整洁的表格 项目主页 https github com dhruvasagar vim table mode 安装 这里以packer为例 packer插件管理器安装
  • React Native打包安卓应用笔记

    前言 大部分内容是复制过来的 xff0c 主要做了一下整理 xff0c 方便自己查阅 打包发布 Android 要求所有应用都有一个数字签名才会被允许安装在用户手机上 xff0c 所以在把应用发布到应用市场之前 xff0c 你需要先生成一个
  • 无需AS通过命令行启动安卓模拟器

    背景 我是做RN开发的 xff0c 要经常启动安卓模拟器来测试 时间久了 xff0c Android Studio 成安卓模拟器启动器了 每次打开AS还是挺久的 xff0c 所以就想直接通过命令行来启动安卓模拟器 xff0c 这样会快很多
  • ssh登录时自动运行命令

    方法一 编辑 nvim ssh rc 里面写上要执行的命令 比如 xff1a span class token builtin class name echo span span class token string 39 command
  • React Native倒计时

    代码 span class token keyword import span span class token operator span span class token keyword as span React span class
  • React Native android 8以上版本闪退踩坑笔记

    背景 我的android的测试机版本是android 8 xff0c 我使用React Native开发的应用 xff0c 自己测试是正常的 iOS上也是正常的 但是一放到android8以上的版本本就出现了闪退的现象 xff0c 让我非常
  • git push send-pack: unexpected disconnect while reading sideband packet

    错误信息 span class token function git span push 枚举对象中 span class token number 200 span 完成 对象计数中 span class token number 100
  • node.js启动静态页面服务

    安装http server span class token function npm span span class token function install span http server g 启动服务 span class to
  • ssh中远程vim自动切本地输入法

    简介 SshIM 是一个解决ssh中使用vim nvim 中文输入法自动切换插件 原理 xff1a 当ssh中使用的vim 进入insert模式或者离开insert模式 xff0c 都会触发一个事件 当触发事件以后 xff0c 通过http
  • mame0.239选定系统所需要的ROM/磁碟映像档为缺少或不正确

    背景 之前发过一个视频 xff0c 讲MAME怎么配置和使用的 结果有网友反馈说有少部分游戏打开报错 xff0c 不会弄 运气比较好 xff0c 我想玩的ROM基本都可以正常使用 我就很奇怪 xff0c 为什么会报错的呢 xff1f 我怎么
  • Netty核心源码分析(一),Netty的Server端启动过程源码分析

    文章目录 系列文章目录一 Netty的Server端启动过程源码分析1 NioEventLoopGroup的创建 xff08 1 xff09 构造方法 2 ServerBootstrap的创建 xff08 1 xff09 构造方法 xff0
  • Android Emulator安卓模拟器去黑边

    安卓模拟器默认会有一个黑边 xff0c 让它看起来像个手机 但是看久了总感觉太占地方了 去掉黑边 重启完成以后 xff0c 效果如下 xff1a
  • 【视频】iOS开发允许http请求

    APP开发中有时会对接一些比较老的项目 xff0c 老的项目还有一些在使用http的 iOS应用默认情况下不允许请求http xff0c 怎么能让其允许呢 xff1f 视频讲解 https www bilibili com video BV
  • The run destination iPhone 13 is not valid for Running the scheme

    报错信息 The run destination iPhone 13 is not valid for Running the scheme apexedu 原因分析 后来我发现我的项目中的TARGETS中少了一个项目 xff0c 不清楚是
  • xcode Archive菜单是灰色的解决办法

    想把iOS应用打包上传到App Store发现这个菜单是灰色的 原因 后来发现 xff0c 因为我当前的运行环境是iOS模拟器 解决办法 运行设备修改成Any iOS Device arm64 xff0c 菜单就可以正常使用了 参考 htt
  • iterm2(zsh)粘贴慢解决办法

    我在macOS环境中使用的是iterm2终端 xff0c 每次在粘贴大量命令的时间 xff0c 明显感觉粘贴速度慢 就感觉粘贴也是一个字一个字粘贴的 在命令过长时由为明显 本以为是iterm2的原因 xff0c 后来发现原来是因为zsh的原
  • MAME打开ROM报错解决办法

    问 olds100 34 西游释厄传 特别版 版本 100 第 1 套 34 运行报错如何解决 xff1f 答 经过我的研究olds100 zip这个游戏是一个特别版本 它依赖两个文件才可以正常运行 分别是 xff1a olds zip x
  • 【新建Spring Boot项目】Connect to 127.0.0.1:1087 [/127.0.0.1] failed: Connection refused

    背景 我在新建微服务项目的时候 xff0c 使用gradle报错Connect to 127 0 0 1 1087 127 0 0 1 failed Connection refused 然后我检查了一下IDEA的代理设置 xff0c 没有