[Spring boot] Integrating with h2 database
2024-09-07 19:02:44
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
最新文章
- open office操作word文档
- 绘制相切弧arcTo
- learning sql (second edition) script
- DataTable,DataSet,DataRow与DataView
- tomcat+nginx+redis实现均衡负载、session共享(二)
- C++关键字之const
- 第七章——DMVs和DMFs(2)——用DMV和DMF监控索引性能
- MyEclipse 10 报错记录
- CODEVS 1074 食物链 2001年NOI全国竞赛(洛谷 P2024)
- JavaScript学习 - 基础(五) - string/array/function/windows对象
- 10.2-uC/OS-III内部任务管理(任务状态)
- mysql 5.7.17 建立主从数据库
- Git - 必知必会
- linux_shell_字符串
- 搭建企业级Docker Registry -- Harbor
- Facebook提出DensePose数据集和网络架构:可实现实时的人体姿态估计
- python基础知识-03-字符串
- lua中遍历table的几种方式比较
- 英语词根与单词的说文解字---词根示例1、第10页 st(at)
- .NET MVC和.NET WEB api混用时注意事项
热门文章
- C# for Hbase 实现详解
- maven编译生成的jar包运行出现 ";Failed to load Main-Class manifest attribute from";
- svn泄漏敏感信息利用方式
- Nodejs微信开发使用wechat-api回复多条消息
- HDU 1039.Easier Done Than Said?-条件判断字符串
- Codeforces 626 B. Cards (8VC Venture Cup 2016-Elimination Round)
- Lookup 组件用法全解
- 25、Django实战第25天:讲师详情页
- PKUSC2018训练日程(4.18~5.30)
- 【莫队算法】【权值分块】bzoj2223 [Coci 2009]PATULJCI