sql

来源:互联网 发布:运营淘宝店要学什么 编辑:程序博客网 时间:2024/06/06 02:58
datasource:  driver-class-name: com.mysql.jdbc.Driver  url: jdbc:mysql://127.0.0.1:3306/dbgirl  username: root  password: rootjpa:  hibernate:    ddl-auto: create

show-sql: true

jpa映射数据库

@Entitypublic class Girl {    @Id    @GeneratedValue    private Integer id;    private String name;    private Integer age;    public Girl() {    }
ddl-auto: create)(每次都创建)/update(创建或者更新)