Spring Boot 配置Oracle数据库

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
 

 

posted @ 2017-04-13 16:28  伍叶春  阅读(43824)  评论(0编辑  收藏  举报