首页 > 其他分享 >naven报错

naven报错

时间:2023-07-02 21:11:59浏览次数:40  
标签:文件 java spring naven springframework 报错 版本 org

D:\code\interview\src\main\java\com\qucc\interview\ArrayListVsLinkedList.java:3:32
java: 无法访问org.springframework.util.StopWatch
错误的类文件: /D:/softTool/apache-maven-3.6.1/mvn_repo/org/springframework/spring-core/6.0.9/spring-core-6.0.9.jar!/org/springframework/util/StopWatch.class
类文件具有错误的版本 61.0, 应为 52.0
请删除该文件或确保该文件位于正确的类路径子目录中。

这个问题代表:错误信息中提到该类文件的版本为61.0,但应该是52.0。这意味着该类文件是使用较新版本的Java编译器编译的,而你的代码使用的是较旧版本的Java编译器。

可以考虑升级jdk版本,也可以降低spring版本兼容jdk8

标签:文件,java,spring,naven,springframework,报错,版本,org
From: https://www.cnblogs.com/wekenyblog/p/17521396.html

相关文章

  • 在Vscode使用命令npm报错-The operation was rejected by your operating system. npm
    报错信息:PSD:\disk\xubo\个人博客文章\27-Vue\资料(含课件)\vuedemo\vueproject>npmipubsub-jsnpmERR!codeEPERMnpmERR!syscallopennpmERR!pathD:\disk\soft\node.js\node_cache_cacache\index-v5\1d\32\0400202fc22af03ff2926f006e455fe92c77b8136b8fbe......
  • [Linux][报错解决] Centos8发行版 运行locale和man报错
    报错信息先是运行manls时,Nomanualentryforls然后运行locale时,cannotsetLC_XXXtodefaultlocale:Nosuchfileordirectoryterminalmessage前因###运行manls时出现Nomanualentryforls,因为没有安装man-pages运行manls时出现man:can'tsettheloca......
  • mysql在新建用户时报错ERROR 1819
    问题描述:mysql在新建用户时报错ERROR1819,如下所示:数据库:mysql5.7.42系统:rhel7.31、问题重现mysql>grantreplicationslave,replicationclienton*.*to'slave'@'192.168.133.91'identifiedby"slave@12345";ERROR1819(HY000):Yourpassworddoe......
  • 添加ingress规则的时候报错
    [root@k8s-master01test]#kubectlapply-fweb-ingress.yamlErrorfromserver(InternalError):errorwhencreating"web-ingress.yaml":Internalerroroccurred:failedcallingwebhook"validate.nginx.ingress.kubernetes.io":failedtoca......
  • golang查询数据报错:closing bad idle connection: unexpected read from socket
    原因应用程序在使用驱动的有效空闲连接时候,发现数据库的连接已经失效(因为连接超过wait_timeout时间),用一个失效的连接查数据,所以报错。解决办法将sql驱动SetConnMaxLifetime和SetConnMaxIdleTime设置时间,并且小于数据库的wait_timeout时间(单位秒)。调小wait_timeout。分析......
  • 部署java的linux服务器远程报错:[USM] Channel request shell failed
    问题部署很多个微服务的linux服务器ssh远程突然进不去,远程工具提示:[USM]Channelrequestshellfailed排查分析因为部署的是很多个java进程,有可能线程数占满导致系统可创建线程耗尽,排查步骤如下:使用非远程方式进入服务器,使用top-H命令查看系统创建的线程数:查看系统允许创......
  • 启动mysql时报错Failed to start mysqld.service: Unit not found
    问题描述:启动mysql时报错Failedtostartmysqld.service:Unitnotfound,如下所示:数据库:mysql5.7.42系统:rhel7.31、问题重现--mysql安装过程[root@leo-mysql-master~]#yumlocalinstallhttps://dev.mysql.com/get/mysql57-community-release-el7-8.noarch.rpm[root@leo......
  • SQLserver登陆报错
    今天也不知道sqlserver抽了什么风,无论是windows登录还是sa登录,登录的时候总是提示错误233。windows登录错误是根本不能建立连接,初始化错误,给了很多原因,sql版本不对啦,连接数超过限制啦;sa登录时错误是连接已建立,但登录过程中发生错误。sorry没截图,反正跟网上的差不多。     网......
  • PyCharm 运行时报错 allure: command not found
    安装Allure(Mac)方法一brewinstallallure方法二可能因为网络等,方式一会下载失败,可以通过以下方式安装1.https://repo.maven.apache.org/maven2/io/qameta/allure/allure-commandline/下载对应版本的压缩包2.配置环境变量-exportPATH=$PATH:/Users......
  • 2023.6.30//关于java链接SQLserver数据库报错:驱动程序无法通过使用安全套接字层(SSL)
    详情如下:驱动程序无法通过使用安全套接字层(SSL)加密与SQLServer建立安全连接。错误:“PKIXpathbuildingfailed:sun.security.provider.certpath.SunCertPathBuilderException:unabletofindvalidcertificationpathtorequestedtarget”。ClientConnectionId:32d1......