Created
April 28, 2017 07:06
-
-
Save cristianprofile/26a48138b34180b4d26820bbd5622eb9 to your computer and use it in GitHub Desktop.
Custom datasource configuration Oracle Database
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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