1.如果下载插件(Plugins)时出现"marketplace plugins are not loaded"问题,则把“use secure connection”的√去掉,再重启Idea
参考:http://www.mamicode.com/info-detail-2602604.html
- 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
- @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代理)