Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- buildscript {
- ext {
- springBootVersion = '2.1.1.RELEASE'
- }
- repositories {
- mavenCentral()
- }
- dependencies {
- classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
- }
- }
- apply plugin: 'java'
- apply plugin: 'eclipse'
- apply plugin: 'org.springframework.boot'
- apply plugin: 'io.spring.dependency-management'
- group = 'com.pickstudio.pickstar'
- version = '0.0.1-SNAPSHOT'
- sourceCompatibility = '1.8'
- repositories {
- mavenCentral()
- }
- dependencies {
- implementation('org.springframework.boot:spring-boot-starter-data-jpa')
- implementation('org.springframework.boot:spring-boot-starter-data-rest')
- implementation('org.springframework.boot:spring-boot-starter-web')
- runtimeOnly('com.h2database:h2')
- runtimeOnly('mysql:mysql-connector-java')
- compileOnly('org.projectlombok:lombok')
- testImplementation('org.springframework.boot:spring-boot-starter-test')
- }
- # create and drop tables and sequences, loads import.sql
- spring:
- profiles:
- active: development
- jpa:
- show-sql: true
- datasource:
- mysql:
- writer:
- url: jdbc:mysql://{master-hostname}:3306/pickstar
- username: {username}
- password: {password}
- driver-class-name: com.mysql.cj.jdbc.Driver
- reader:
- url: jdbc:mysql://{slave-hostname}:3306/pickstar
- username: {username}
- password: {password}
- driver-class-name: com.mysql.cj.jdbc.Driver
Add Comment
Please, Sign In to add comment