spring-data-jpa - Spring Tool Suit 从数据库生成 JPA 实体:解决方案
问题描述
Spring Tool Suit 或 Eclipse 中 Marketplace 的 G9 插件完成了工作。
- 安装插件 G9
- 选择项目 (JAVA)
- 导入“导入数据库模型”
- 选择 JDBC 驱动程序(在我的例子中是 mysql)
- 维护 JDBC 连接
- 新的
- 提供驱动程序名称、添加 Jar、端口、驱动程序类和连接 url 以及模式 (jdbc:mysql://localhost:3306/{schema_name})
- 关闭 JDBC 连接框
- 端口、数据库名称、用户名和密码
- 拿来
解决方案
推荐阅读
- xcode - Xcode 图像快速查看不适用于 M1 Mac
- node.js - 使用后端(节点,vuejs)时出现 404 错误和 204 错误?
- python - Python tkinter 库未正确安装
- material-ui - 在部分之间添加垂直线并且这些线是红色的
- android - Android - alarmManager.setRepeating 不重复
- wordpress - Cloudflare 优化技术(免费计划)
- python - Beautifulsoup Python:Goibibo 酒店价格
- asp.net-core - 无法向 .NET Core MVC 发出 HTTP 发布请求
- javascript - 不能在三元方程中访问对象的属性,但在 JSX 中可以正常工作?
- python - 在 python 数据框中查找最小值,仅选择其他 df 或列表中包含的行或列