spring boots JPA 使用MYSQL

来源:互联网 发布:网络购物诈骗类型 编辑:程序博客网 时间:2024/06/10 16:40
steps:
1.实体建模 entity
2.持久化 Repository


configuration:
1.maven 依赖 data-jpa and mysql-connector-java
2.JPA配置类继承于接口 JpaConfiguration
3.config application.yml


原创粉丝点击