Skip to content

Instantly share code, notes, and snippets.

@aalmiray
Last active May 11, 2020 15:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aalmiray/92f3e67195ae2cac92d8fbf359985fa1 to your computer and use it in GitHub Desktop.
Save aalmiray/92f3e67195ae2cac92d8fbf359985fa1 to your computer and use it in GitHub Desktop.
Micronaut + Oracle JDBC
datasources:
default:
url: ${JDBC_URL:`jdbc:oracle:thin:@localhost:1521/XEPDB1`}
username: ${JDBC_USER:system}
password: ${JDBC_PASSWORD:S3cr3TP4$$wd}
driverClassName: ${JDBC_DRIVER:oracle.jdbc.driver.OracleDriver}
dependencies {
implementation('io.micronaut.configuration:micronaut-jdbc-ucp')
}
dataSource:
url: ${JDBC_URL:`jdbc:oracle:thin:@localhost:1521/XEPDB1`}
username: ${JDBC_USER:system}
password: ${JDBC_PASSWORD:S3cr3TP4$$wd}
driverClassName: ${JDBC_DRIVER:oracle.jdbc.driver.OracleDriver}
<dependencies>
<dependency>
<groupId>io.micronaut.configuration</groupId>
<artifactId>micronaut-jdbc-ucp</artifactId>
<scope>compile</scope>
</dependency>
</dependencies>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment