springboot-bucket/springboot-hibernate/README.md
2018-03-02 18:49:45 +08:00

29 lines
610 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

## 集成Hibernate
SpringBoot集成Hibernate做DAO层
## 安装MySQL数据库
数据库的安装教程网上非常多版本最好是mysql5.5+
配置数据库的账号和密码。
## 修改application.yml
修改配置文件主要是mysql的账号和密码
## 数据库初始化
创建数据库pos然后执行SQL文件`src/main/resources/sql/schema.sql`,创建表
## 运行测试用例
执行对用户表增/删/改/查的测试用例:`com.xncoding.pos.ApplicationTests.java`
## 许可证
Copyright (c) 2018 Xiong Neng
基于 MIT 协议发布: <http://www.opensource.org/licenses/MIT>