In pom.xml add dependency:

    <dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency> <dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
</dependency> </dependencies>

Then in application.properties:

spring.h2.console.enabled=true
spring.h2.console.path=/h2

Now, in the broswer, we can access h2 database though url: localhost:8080/h2

最新文章

  1. open office操作word文档
  2. 绘制相切弧arcTo
  3. learning sql (second edition) script
  4. DataTable,DataSet,DataRow与DataView
  5. tomcat+nginx+redis实现均衡负载、session共享(二)
  6. C++关键字之const
  7. 第七章——DMVs和DMFs(2)——用DMV和DMF监控索引性能
  8. MyEclipse 10 报错记录
  9. CODEVS 1074 食物链 2001年NOI全国竞赛(洛谷 P2024)
  10. JavaScript学习 - 基础(五) - string/array/function/windows对象
  11. 10.2-uC/OS-III内部任务管理(任务状态)
  12. mysql 5.7.17 建立主从数据库
  13. Git - 必知必会
  14. linux_shell_字符串
  15. 搭建企业级Docker Registry -- Harbor
  16. Facebook提出DensePose数据集和网络架构:可实现实时的人体姿态估计
  17. python基础知识-03-字符串
  18. lua中遍历table的几种方式比较
  19. 英语词根与单词的说文解字---词根示例1、第10页 st(at)
  20. .NET MVC和.NET WEB api混用时注意事项

热门文章

  1. C# for Hbase 实现详解
  2. maven编译生成的jar包运行出现 &quot;Failed to load Main-Class manifest attribute from&quot;
  3. svn泄漏敏感信息利用方式
  4. Nodejs微信开发使用wechat-api回复多条消息
  5. HDU 1039.Easier Done Than Said?-条件判断字符串
  6. Codeforces 626 B. Cards (8VC Venture Cup 2016-Elimination Round)
  7. Lookup 组件用法全解
  8. 25、Django实战第25天:讲师详情页
  9. PKUSC2018训练日程(4.18~5.30)
  10. 【莫队算法】【权值分块】bzoj2223 [Coci 2009]PATULJCI