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

可以用服务器做网站今日热点新闻10条

可以用服务器做网站,今日热点新闻10条,做网站的时候字体应该多大,石家庄最新招聘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.mmbaike.com/news/111227.html

相关文章:

  • 做婚恋网站要多少钱seo简单优化操作步骤
  • 如何做网站赚流量钱百度网站提交入口
  • 微网站自己怎么做的吗郑州谷歌优化外包
  • 郑州网站建设汉狮百度网盘资源共享
  • 邯郸网站建设哪家专业关键词排名软件
  • 卡通做头像的网站吸引人的软文标题例子
  • 法人变更在哪个网站做公示百度关键词优化有效果吗
  • wordpress能做cms系统搜索引擎优化的目的是
  • wordpress添加java脚本seo关键词排名优
  • 做ppt模板网站前端seo怎么优化
  • 软件技术有限公司陕西seo主管
  • 怎么做网站拍卖的那种专业模板建站
  • 阿里云 做购物网站网站国内高清视频素材网站推荐
  • 免费行情软件app网站大全下载u288google下载安卓版下载
  • 重庆哪里可以做公司网站长沙seo优化公司
  • 建设厅安检局网站一份完整的品牌策划方案
  • 自己想做网站怎么做网站查询服务器
  • 食品网站建设策划广州品牌营销服务
  • 手机导入wordpress主题网络优化的工作内容
  • wordpress手机网站怎么做北京seo关键词排名
  • 购物网站前台功能作品推广
  • 网站是由什么构成的合肥百度seo代理
  • 外加工平台南京百度推广优化排名
  • 网站建设需求百度pc网页版入口
  • 昆山做网站好的百度数据分析
  • 打开网站后直接做跳转百度推广助手手机版
  • 河南省建设厅职称网站电商平台怎么加入
  • 多语言 网站2024年新闻摘抄
  • 东营建设信息网站最近发生的热点事件
  • 苏州品牌网站建设东莞建设企业网站公司