初步配置hibernate,记录下配置过程,仅供查询:
1.首先在数据库中新建一个Car表,
表中只有两个字段:
ID int ;Name varchar;

2.Idea选择新建project,选择勾选hibernate同时选择create defauklt hibernate configuration and main class import database schema

初步配置hibernate,记录下配置过程,仅供查询:
1.首先在数据库中新建一个Car表,
表中只有两个字段:
ID int ;Name varchar;
2.Idea选择新建project,选择勾选hibernate同时选择create defauklt hibernate configuration and main class import database schema
本文标题:hibernate小白hello world
本文链接:https://www.haomeiwen.com/subject/ukgqmftx.html
网友评论