首页 > 解决方案 > Spring Tool Suit 从数据库生成 JPA 实体:解决方案

问题描述

Spring Tool Suit 或 Eclipse 中 Marketplace 的 G9 插件完成了工作。

  1. 安装插件 G9
  2. 选择项目 (JAVA)
  3. 导入“导入数据库模型”
  4. 选择 JDBC 驱动程序(在我的例子中是 mysql)
  5. 维护 JDBC 连接
    • 新的
    • 提供驱动程序名称、添加 Jar、端口、驱动程序类和连接 url 以及模式 (jdbc:mysql://localhost:3306/{schema_name})
  6. 关闭 JDBC 连接框
  7. 端口、数据库名称、用户名和密码
  8. 拿来

参考网址https://www.esito.no/produkter/dbimport/

标签: spring-data-jpaspring-tool-suite

解决方案


推荐阅读