idea必装插件EditStarters(快速引入依赖)

前言

        一般来说我们要向一个 servlet 或者 Spring 项目中引入依赖都需要先到中心仓库找到对应的依赖,选择依赖的版本,把依赖添加到配置文件 pom.xml 中,这其实还是有点麻烦的,而通过 EditStarters 插件我们可以迅速的添加依赖到项目中

安装流程

        1.在左上角找到 File 点击 Settings 

idea必装插件EditStarters(快速引入依赖)_第1张图片

        2.选择 Plugins 搜索 EditStarters 下载安装

idea必装插件EditStarters(快速引入依赖)_第2张图片

使用流程

        以导入 lombok(可以自动帮我们在类中为属性添加 get 和 set 方法) 依赖为例

        1.在pom.xml 文件下,右键选择 Generate

idea必装插件EditStarters(快速引入依赖)_第3张图片

        2.选择 Edit Starters

idea必装插件EditStarters(快速引入依赖)_第4张图片

        3.选择 Developer Tools(开发工具),勾上 Lombok 点击 OK 我们便添加了 Lombok 依赖

idea必装插件EditStarters(快速引入依赖)_第5张图片

你可能感兴趣的:(工具,intellij-idea,java,ide)