一些Idea问题,注解意义

1.如果下载插件(Plugins)时出现"marketplace plugins are not loaded"问题,则把“use secure connection”的√去掉,再重启Idea
在这里插入图片描述参考:http://www.mamicode.com/info-detail-2602604.html

  1. lombok下的@Getter 和 @Setter注释如果加在class上,自动为每一个variable添加getter和setter方法;如果加在variable上,则只为那个variable加
    参考:https://springframework.guru/spring-boot-with-lombok-part-1/

3.@RequiredArgsConstructor: generates a constructor with 1 parameter for each field that requires special handling. All non-initialized final fields get a parameter, as well as any fields that are marked as @NonNull that aren’t initialized where they are declared. For those fields marked with @NonNull, an explicit null check is also generated. The constructor will throw a NullPointerException if any of the parameters intended for the fields marked with @NonNull contain null. The order of the parameters match the order in which the fields appear in your class.
参考:https://projectlombok.org/features/constructor

  1. @AggregateRoot, 由此注释的class管理所有它包含的variable.

5.Dependencies无法下载可能是由于jdk版本不对(下图报错时右边Dependencies下的包底下都有红线报错)
在这里插入图片描述

SDK:software development kit
帮助配置jdk

6.使用lombok时记得下载支持插件(plugin) lombok
在这里插入图片描述
7.如果pom.xml旁边的图标是红色,右边也没有出现maven小模块,只有Ant和database的话,并且project里的class都变成java文件的话,可能要重新导入project(关掉vpn代理)

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值