当前位置:网站首页>idea自动生成代码
idea自动生成代码
2022-06-28 02:16:00 【热爱Java的编程小白】
idea是完全可以自动生成一些基础代码,后续只需要根据生成的基础代码进行业务代码的编写,看看是如何生成的,教程比较全面,请耐心阅读,谢谢啦!
1.首先检查自己的idea是否安装了自动生成代码的插件,没有请移步安装插件Easy Code。

2.检查idea是否连接上数据库,没有请移步去idea连上数据库


3.右键表名->选择EasyCode->Generate Code->根据自己的需求生成对应的代码


注意:到这里基本的代码生成已经结束,但是可能会出现部分代码报红的情况,需要添加对应的依赖,这里根据我个人的情况进行分享。

添加这个依赖即可解决
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-elasticsearch</artifactId>
</dependency>
边栏推荐
- What are the good practices of cloud cost optimization?
- [iptables & ICMP] description of ICMP Protocol in iptables default policy
- adb双击POWER键指令
- Feign远程调用fallback回调失败,无效果
- In the digital era, enterprises must do well in user information security
- [plug in -statistical] statistics the number of code lines and related data
- How to write concise code? (upper)
- Heartless sword English Chinese bilingual poem 004 Meditation
- Simple file transfer protocol TFTP
- PPT制作小技巧
猜你喜欢

Brief history and future trend of codeless software

Raspberry pie - environment settings and cross compilation

2022年R1快开门式压力容器操作特种作业证考试题库及答案
![[today in history] June 25: the father of notebook was born; Windows 98 release; First commercial use of generic product code](/img/ef/a26127284fe57ac049a4313d89cf97.png)
[today in history] June 25: the father of notebook was born; Windows 98 release; First commercial use of generic product code

【iptables&icmp】iptables默认策略中关于icmp协议的说明

3年功能测试拿8K,被刚来的测试员反超,其实你在假装努力

PSM summary

文件的相对路径写法

Inference optimization implementation of tensorrt model

【小程序】使用font-awesome字体图标的解决文案(图文)
随机推荐
Initial linear regression
项目实战!手把手教你 Jmeter 性能测试
apache、iis6、ii7独立ip主机屏蔽拦截蜘蛛抓取(适用vps云主机服务器)
Built in functions for MySQL database operations
The first in the industry! MOS sub evaluation model for subjective video quality experience that can run on mobile devices!
[kotlin] basic introduction and understanding of its syntax in Android official documents
Domain Name System
将PCAP转换为Json文件的神器:joy(安装篇)
【小程序】使用font-awesome字体图标的解决文案(图文)
"Everyday Mathematics" serial 53: February 21
What is the best and safest software to download when buying stocks?
[today in history] June 25: the father of notebook was born; Windows 98 release; First commercial use of generic product code
The horizontal scrolling recycleview displays five and a half in one screen, which is lower than the five average distributions
Single page application (SPA) hash route and historical API route
Apache——阿帕奇简介
多快好省,低门槛AI部署工具FastDeploy测试版来了!
Review the submission of small papers for 2022 spring semester courses
【Kotlin】在Android官方文档中对其语法的基本介绍和理解
分布式事务—基于消息补偿的最终一致性方案(本地消息表、消息队列)
元宇宙标准论坛成立