记录一次使用springboot 3 用gradle脚本的踩坑记录

ops/2024/9/25 19:19:11/

问题1 . 下载插件或者gradle以及gradle plus有问题

        报错:Could not resolve org.springframework.boot:spring-boot-gradle-plugin:3.3.0-RC

解决方法:使用如下配置

settings.gradle的 pluginManagement下 repositories是插件的依赖或者插件的下载地址

java">pluginManagement {repositories {maven {url "https://plugins.gradle.org/m2/"}maven { url 'https://repo.spring.io/milestone' }gradlePluginPortal()}
}
rootProject.name = 'demo'

build.gradle的  repositories是项目的依赖的

推荐配置

java">plugins {id 'java'id 'org.springframework.boot' version '3.2.5'id 'io.spring.dependency-management' version '1.1.4'
}group = 'com.doushuang'
version = '0.0.1-SNAPSHOT'java {sourceCompatibility = '17'
}repositories {
//	maven {
//		url "https://mvn.cloud.alipay.com/nexus/content/repositories/open/"
//	}maven{allowInsecureProtocol = trueurl 'http://maven.aliyun.com/nexus/content/groups/public/'}
//	maven{url 'http://maven.aliyun.com/nexus/content/repositories/google'}mavenCentral()maven { url 'https://repo.spring.io/milestone' }
}dependencies {implementation 'org.springframework.boot:spring-boot-starter'testImplementation 'org.springframework.boot:spring-boot-starter-test'
}tasks.named('test') {useJUnitPlatform()
}

问题2 . Could not resolve all dependencies for configuration ':detachedConfiguration5'.

解决:

如上配置  添加 allowInsecureProtocol = true

java">	maven{allowInsecureProtocol = trueurl 'http://maven.aliyun.com/nexus/content/groups/public/'}


http://www.ppmy.cn/ops/14931.html

相关文章

vue3 emits: [‘update:modelValue‘]

在 Vue.js 中,emits 选项用于声明组件可以触发的事件。[update:modelValue] 是 Vue 3 中用于自定义组件与 v-model 指令配合工作的特殊事件名。 当您使用 v-model 指令与自定义组件进行双向绑定时,Vue 内部实际上是在做以下操作: 将 value …

R语言详解二

一&#xff0c;列表详解 创建一个列表 > myList<-list(id2,name"张三",age20) > myList $id [1] 2$name [1] "张三"$age [1] 20 获取第一个元素 > myList[[2]] [1] "张三" 获取第一个子列表 > myList[2] $name [1] "张…

`THREE.AudioAnalyser` 音频分析

demo案例 THREE.AudioAnalyser 音频分析 入参 (Input Parameters): audio: 一个 THREE.Audio 实例&#xff0c;代表要分析的音频。fftSize: 快速傅里叶变换&#xff08;FFT&#xff09;的大小&#xff0c;用于确定分析的精度和频率分辨率。smoothingTimeConstant: 平滑时间…

vlan的学习笔记2(vlan间通信)

1.使用路由器的物理接口 原理&#xff1a;在二层交换机上配置VLAN&#xff0c;每个VLAN单独使用一个交换机接口与路由器互联。路由器使用两个物理接口&#xff0c;分别作为VLAN 10及VLAN 20内PC的默认网关&#xff0c;使用路由器的物理接口实现VLAN之间的通信。 实验1&#x…

K8S 部署和访问 Kubernetes 仪表板(Dashboard)

文章目录 部署 Dashboard UI浏览器访问登陆系统 Dashboard 是基于网页的 Kubernetes 用户界面。 你可以使用 Dashboard 将容器应用部署到 Kubernetes 集群中&#xff0c;也可以对容器应用排错&#xff0c;还能管理集群资源。 你可以使用 Dashboard 获取运行在集群中的应用的概览…

使用git将本地项目上传到github

大致的流程是&#xff1a;创建本地仓库&#xff0c;把代码传到本地仓库&#xff0c;把本地仓库内容传到远程仓库。还不太完整&#xff0c;逐渐摸索使用吧 1、初始化仓库 git init在本地项目的路径中初始化一个仓库。 2、提交到本地 选择需要上传的文件 git add .提交到本地…

树形dp,LeetCode 2385. 感染二叉树需要的总时间

一、题目 1、题目描述 给你一棵二叉树的根节点 root &#xff0c;二叉树中节点的值 互不相同 。另给你一个整数 start 。在第 0 分钟&#xff0c;感染 将会从值为 start 的节点开始爆发。 每分钟&#xff0c;如果节点满足以下全部条件&#xff0c;就会被感染&#xff1a; 节点…

解锁无限资源:用爬虫玩转石墨文档

石墨文档作为一款在线协作编辑工具&#xff0c;汇集了大量的优质文档资源。然而&#xff0c;有时我们需要更多、更广泛的资源&#xff0c;这时候&#xff0c;利用爬虫技术就能轻松获取到我们需要的文档。本文将详细介绍如何利用爬虫玩转石墨文档&#xff0c;解锁无限资源的奥秘…