Spring Boot 配置Oracle数据库

时间:2017-04-13 16:34:56   收藏:0   阅读:1650
1、添加oralce 依赖包,仓库没有则通过maven装载到本地仓库;
  

2、application.properties 中添加配置,特别是第一个配置项要严重注意!

spring.jpa.database=oracle
spring.datasource.driver-class-name=oracle.jdbc.driver.OracleDriver
spring.datasource.url=jdbc:oracle:thin:@172.16.10.25:1521:torcl
spring.datasource.username=center
spring.datasource.password=centerDB12345
spring.jpa.hibernate.ddl-auto=update
 

 

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!