当前位置: 首页 > news >正文

做qq群头像网站服务网站

做qq群头像网站,服务网站,提升网站权重吗,网站建设方案书doc模板Spring 源码调试问题 文章目录 Spring 源码调试问题一、问题描述二、解决方案 一、问题描述 错误&#xff1a;springframework\buildSrc\src\main\java\org\springframework\build\CheckstyleConventions.java:68: 错误: 找不到符号 List<String> buildFolders List.of…

Spring 源码调试问题

文章目录

  • `Spring` 源码调试问题
    • 一、问题描述
    • 二、解决方案

一、问题描述

错误:springframework\buildSrc\src\main\java\org\springframework\build\CheckstyleConventions.java:68: 错误: 找不到符号
List<String> buildFolders = List.of("bin", "build", "out");
^
符号:方法 of(java.lang.String,java.lang.String,java.lang.String)

位置:接口 java.util.List

源码错误文件如下

/** Copyright 2002-2024 the original author or authors.** Licensed under the Apache License, Version 2.0 (the "License");* you may not use this file except in compliance with the License.* You may obtain a copy of the License at**      https://www.apache.org/licenses/LICENSE-2.0** Unless required by applicable law or agreed to in writing, software* distributed under the License is distributed on an "AS IS" BASIS,* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.* See the License for the specific language governing permissions and* limitations under the License.*/package org.springframework.build;import java.io.File;
import java.nio.file.Path;
import java.util.List;import io.spring.javaformat.gradle.SpringJavaFormatPlugin;
import io.spring.nohttp.gradle.NoHttpExtension;
import io.spring.nohttp.gradle.NoHttpPlugin;
import org.gradle.api.Plugin;
import org.gradle.api.Project;
import org.gradle.api.artifacts.DependencySet;
import org.gradle.api.plugins.JavaBasePlugin;
import org.gradle.api.plugins.quality.Checkstyle;
import org.gradle.api.plugins.quality.CheckstyleExtension;
import org.gradle.api.plugins.quality.CheckstylePlugin;/*** {@link Plugin} that applies conventions for checkstyle.** @author Brian Clozel*/
public class CheckstyleConventions {/*** Applies the Spring Java Format and Checkstyle plugins with the project conventions.* @param project the current project*/public void apply(Project project) {project.getPlugins().withType(JavaBasePlugin.class, (java) -> {if (project.getRootProject() == project) {configureNoHttpPlugin(project);}project.getPlugins().apply(CheckstylePlugin.class);project.getTasks().withType(Checkstyle.class).forEach(checkstyle -> checkstyle.getMaxHeapSize().set("1g"));CheckstyleExtension checkstyle = project.getExtensions().getByType(CheckstyleExtension.class);checkstyle.setToolVersion("10.14.2");checkstyle.getConfigDirectory().set(project.getRootProject().file("src/checkstyle"));String version = SpringJavaFormatPlugin.class.getPackage().getImplementationVersion();DependencySet checkstyleDependencies = project.getConfigurations().getByName("checkstyle").getDependencies();checkstyleDependencies.add(project.getDependencies().create("io.spring.javaformat:spring-javaformat-checkstyle:" + version));});}private static void configureNoHttpPlugin(Project project) {project.getPlugins().apply(NoHttpPlugin.class);NoHttpExtension noHttp = project.getExtensions().getByType(NoHttpExtension.class);noHttp.setAllowlistFile(project.file("src/nohttp/allowlist.lines"));noHttp.getSource().exclude("**/test-output/**", "**/.settings/**","**/.classpath", "**/.project", "**/.gradle/**");List<String> buildFolders = List.of("bin", "build", "out"); // 错误位置project.allprojects(subproject -> {Path rootPath = project.getRootDir().toPath();Path projectPath = rootPath.relativize(subproject.getProjectDir().toPath());for (String buildFolder : buildFolders) {Path innerBuildDir = projectPath.resolve(buildFolder);noHttp.getSource().exclude(innerBuildDir + File.separator + "**");}});}}

二、解决方案

Gradle JVM 版本过低,需要在 Java 8 版本以上,建议 Java 17,因为官方 Spring 版本用的就是 Java 17

Settings 里面的 gradle JVM 配置设置为 Java 17 即可

在这里插入图片描述

http://www.yayakq.cn/news/404528/

相关文章:

  • 郑州哪家专业做淘宝网站图书馆建设网站需要哪些费用
  • 怎么在ftp中查看网站首页路径做办公用品网站工作计划
  • 做a视频 免费网站做网站给客户聊天记录
  • 网站开发流程中有哪几个阶段协会网站方案
  • 临沂哪里做网站企业网页页面模块
  • 网站正在建设中 页面建设网站的价钱
  • 投简历网站wordpress移除评论
  • 帮客户做网站 没签合同咋办水果电商网站建设相关文献
  • 景德镇建设局网站高端网络推广
  • 六安服装网站建设地址wordpress 神箭手
  • 排名app通州优化公司
  • 做网站动态背景的图片网站设计站点管理
  • 宜春建设网站公司竞价推广怎么样
  • 贾汪区建设局网站wordpress更换主题 小工具
  • 免费行情软件网站大全网页版西丽做网站
  • 营销型网站建设的一般过程包括哪些环节?南昌网站排名优化报
  • seo排名网站 优帮云wordpress使用教程书
  • 在线购物网站建设的需求分析武夷山网站建设
  • 网站服务器放置地怎么填写店铺设计思路及创意
  • 广东省做网站推广公司wordpress 评论ip拉黑
  • 做室内设计的网站小店网站怎么做
  • 专业公司网站建设服务公司上海专业做网站较好的公司
  • 网站建设多少钱鞋徐州百姓网招聘信息网
  • html5 图片网站无锡微盟网络科技有限公司
  • 阿里云做网站电话手机网站 图标
  • 企业微信网站开发文档wordpress 重置管理员密码
  • 长沙网站建设0731aso排名
  • 查建设施工资质的网站安装失败未能找到wordpress目录
  • 网站建设最难的是什么域名一般在哪里购买
  • 泉州网站建设服务电脑iis做网站