ffch/README.md

16 lines
692 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.

# SpringBoot集成H2
1. H2数据库是一个开源的关系型数据库。H2采用java语言编写不受平台的限制同时支持网络版和嵌入式版本有比较好的兼容性支持相当标准的sql标准
2. 提供JDBC、ODBC访问接口提供了非常友好的基于web的数据库管理界面
> 官网http://www.h2database.com/
在``application.properties``配置了H2的管理后台入口``http://localhost:8081/h2console``
``JDBC URL``、``User Name``和``Password``参考配置文件输入。
执行``test\resource``下的sql脚本。
两个测试接口get请求
- http://localhost:8081/getList.json?name=王
- http://localhost:8081/getOne.json?id=6