IDEA开发工具技巧

1.1 IDEA相关插件

idea插件下载地址:https://plugins.jetbrains.com/

开发必装插件:

(1) 快速查找api接口 RestfulTool 插件,推荐指数⭐⭐⭐⭐⭐

 [RestfulTool搜索插件使用详解](https://blog.csdn.net/weixin_45014721/article/details/121891653)

(2)阿里的代码代码规范检查工具

Alibaba Java Coding Guidelines
在这里插入图片描述

(3)SonarLint 代码规范检查工具

在这里插入图片描述

(4)maven Helper插件

(5)lombok插件

(6) 比IDEA自带热部署好用很多倍的插件 JRebel

JRebel热部署插件的使用在这里插入图片描述

(7) Codota 代码智能提示插件

在这里插入图片描述

(8)Mybatis X

(9) CamelCase 驼峰命名和下划线命名转换

在这里插入图片描述

(10) Rainbow Brackets 彩虹括号插件 (不要用)

2、IDEA热部署

问题

第一步

在这里插入图片描述

第二步 :ctrl+shift+alt+/ 在弹出的框内选择Registry,勾选

在这里插入图片描述

第三步 添加依赖

<dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-devtools</artifactId>
</dependency>

第四步: 配置maven插件

   <build>
        <plugins>
            <!--  热部署插件 -->
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
                <configuration>
                    <fork>true</fork>
                    <addResources>true</addResources>
                </configuration>
            </plugin>
        </plugins>
    </build>

第五步:启动类结构里面选择更新类和资源

在这里插入图片描述

3、IDEA忽略文件后缀

在这里插入图片描述

4、 自定义模板,快速写代码

在这里插入图片描述
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/qq_41787812/article/details/133150906