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 # 网页访问路径

最新文章

  1. swift学习笔记4——扩展、协议
  2. sonne_game网站开发02spring+mybatis框架搭建
  3. C#中使用Oracle存储过程返回结果集
  4. C#-WinForm-公共控件的基本属性及练习
  5. poj 2029 Get Many Persimmon Trees (dp)
  6. android 50 进程优先级
  7. ORA-00845: MEMORY_TARGET not supported
  8. css多行文本垂直居中问题研究
  9. T-SQL开发——ID处理篇
  10. 201521123051《Java程序设计》第十周学习总结
  11. RROR: [XSIM 43-3238] Failed to link the design.
  12. [20170824]11G备库启用DRCP连接.txt
  13. duilib进阶教程 -- Container控件 (3)
  14. 【HAOI2014】遥感监测
  15. spring事务中出现oracle游标溢出的解决方案
  16. Vue笔记:webpack项目vue启动流程
  17. Sql server 使用drop database 语句,无法删除正在使用的数据库的解决办法
  18. border属性
  19. GDI+ gif文件的显示和格式转换
  20. Three Pieces CodeForces - 1065D (BFS)

热门文章

  1. Mac下 python2和python3共存
  2. [LeetCode] 150. Evaluate Reverse Polish Notation 计算逆波兰表达式
  3. [LeetCode] 271. Encode and Decode Strings 加码解码字符串
  4. 最常见的Java面试题及答案汇总(一)
  5. Linux的docker安装solr并创建core
  6. 怎么查看服务器的cpu和内存的硬件信息
  7. Python之序列化概念
  8. XGBoost对波士顿房价进行预测
  9. pyenv基本使用
  10. dubbo中使用动态代理