Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save cristianprofile/26a48138b34180b4d26820bbd5622eb9 to your computer and use it in GitHub Desktop.

Select an option

Save cristianprofile/26a48138b34180b4d26820bbd5622eb9 to your computer and use it in GitHub Desktop.
Custom datasource configuration Oracle Database
Warning !!! Be carefull hibernate: ddl-auto value. Not usefull to Production enviroments. Your data could be deleted!!!!!!!!
server:
port: 9090
management:
port: 9091
address: 127.0.0.1
http:
mappers:
jsonPrettyPrint: true
spring:
main:
banner-mode: OFF
jpa:
generate-ddl: false
hibernate:
ddl-auto: update
show-sql: true
database-platform: org.hibernate.dialect.Oracle10gDialect
datasource:
url: jdbc:oracle:thin:@xx.xx.xx:1528:xxxxx
username: xxxxx
password: xxxxxxx
driver-class-name: oracle.jdbc.OracleDriver
logging:
level:
org.springframework.web: debug
org.hibernate: debug
level.org.hibernate: ERROR
com.mylab: DEBUG
---------------------------------------------------------------------
@RunWith(SpringRunner.class)
@SpringBootTest(classes ={ConfigurationRepository.class} )
@EnableAutoConfiguration (this annotation is a must to be able to autoconfigure persistence context by Spring boot)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment