第一步:打开idea界面中数据库面板。 第二步:选中需要生成java实体类的表,然后单击右键,选择Scripted Extensions→Generate POJOs.groovy。 第三步:选择存放该java类的目录。