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

使用Spring和Springboot遇到的问题及解决办法

1、提示是符号错误

错误描述:

You aren‘t using a compiler supported by lombok, so lombok will not work and has been disabled.

结解决办法:

提高lombok的版本

2、java:错误:不支持版本5

解决办法:

(1)Settings设置

Settings--Editor--File Encodings

Settings--搜索框,搜索maven

Settings--Build,Execution,Deployment--Compiler--Java Compiler--修改对应Moudule的Target bytecode version 版本(我的版本是jdk17)

(2)主配置文件pom.xml

在主配置文件pom.xml上面,加入如下代码

    <properties><maven.compiler.source>17</maven.compiler.source><maven.compiler.target>17</maven.compiler.target></properties>

(3)Project Structure设置

Project Structure--Project

Project Structure--Moudules--选择对应的模块--Socure/Dependencies

3、  Unsupported class file major version 61

错误提示:

nested exception is java. lang IllegalArgumentException: Unsupported class file major version 61

ASM ClassReader failed to parse class file - probably due to a new Java class file version that isn't supported yet: file

解决办法:

在主配置文件pom.xml中,加入如下代码

        <dependency><groupId>org.springframework</groupId><artifactId>spring-context</artifactId><version>5.3.15</version></dependency>

4、加入Services按钮

http://www.xdnf.cn/news/6098.html

相关文章:

  • 什么叫裸机开发
  • 差分探头量程选择的六大认知误区与应对方案
  • 模板的使用
  • ASP.NET Core Identity 框架中实现密码重置
  • 【Qt】之音视频编程2:QtAV的使用篇
  • MapReduce打包运行
  • 在Window上面添加交叉编译链 MinGW+NDK
  • blazor与硬件通信实现案例
  • PyTorch 分布式训练
  • AI时代,如何实现人机共舞?
  • 新建一个reactnative 0.72.0的项目
  • VLA 论文精读(二十二)Multi-agent Embodied AI: Advances and Future Directions
  • 【架构】RUP统一软件过程:企业级软件开发的全面指南
  • 在scala中sparkSQL连接masql并添加新数据
  • python使用OpenCV 库将视频拆解为帧并保存为图片
  • 【Mac 从 0 到 1 保姆级配置教程 15】- Python 环境一键安装与配置,就是这么的丝滑
  • 虚拟机Ubuntu系统怎么扩展容量,扩展容量后进不去系统怎么办?
  • python共享内存实际案例,传输opencv frame
  • Python面向对象编程(OOP)深度解析:从封装到继承的多维度实践
  • 【论信息系统项目的资源管理】
  • 【Git】合并和变基的区别
  • windows 强行终止进程,根据端口号
  • 人工智能技术演进:从多模态融合到智能体落地的实践探索
  • uart16550详细说明
  • 使用虚拟机Linux写程序
  • 网站开发过程中样式忽然不显示问题
  • GOOSE协议publisher上传频率
  • Playwright 安装配置文件详解
  • 爆肝整理!软件测试面试题整理(项目+接口问题)
  • OpenCV特征处理全解析:从检测到匹配的完整指南