Spring Boot 笔记 (8) - H2 数据库
2024-10-21 05:47:24
Maven 依赖
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<scope>runtime</scope>
</dependency>
Application.yml 配置
datasource:
driver-class-name: org.h2.Driver
url: jdbc:h2:mem:tcm
username: sa # 随意配置, 网页访问时一致即可
password: sa
jpa:
database: h2
hibernate:
ddl-auto: update
show-sql: true
h2:
console: # 注意网页版中 url、用户名、密码相一致
enabled: true # 开启网页访问
path: /h2 # 网页访问路径
最新文章
- swift学习笔记4——扩展、协议
- sonne_game网站开发02spring+mybatis框架搭建
- C#中使用Oracle存储过程返回结果集
- C#-WinForm-公共控件的基本属性及练习
- poj 2029 Get Many Persimmon Trees (dp)
- android 50 进程优先级
- ORA-00845: MEMORY_TARGET not supported
- css多行文本垂直居中问题研究
- T-SQL开发——ID处理篇
- 201521123051《Java程序设计》第十周学习总结
- RROR: [XSIM 43-3238] Failed to link the design.
- [20170824]11G备库启用DRCP连接.txt
- duilib进阶教程 -- Container控件 (3)
- 【HAOI2014】遥感监测
- spring事务中出现oracle游标溢出的解决方案
- Vue笔记:webpack项目vue启动流程
- Sql server 使用drop database 语句,无法删除正在使用的数据库的解决办法
- border属性
- GDI+ gif文件的显示和格式转换
- Three Pieces CodeForces - 1065D (BFS)