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
 

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-08-15
  • 2021-11-19
  • 2022-01-14
  • 2021-12-01
  • 2021-10-15
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-10-30
  • 2021-09-01
  • 2022-01-04
  • 2022-01-19
相关资源
相似解决方案