Guest User

Untitled

a guest
Jan 16th, 2019
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.44 KB | None | 0 0
  1. buildscript {
  2. ext {
  3. springBootVersion = '2.1.1.RELEASE'
  4. }
  5. repositories {
  6. mavenCentral()
  7. }
  8. dependencies {
  9. classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
  10. }
  11. }
  12.  
  13. apply plugin: 'java'
  14. apply plugin: 'eclipse'
  15. apply plugin: 'org.springframework.boot'
  16. apply plugin: 'io.spring.dependency-management'
  17.  
  18. group = 'com.pickstudio.pickstar'
  19. version = '0.0.1-SNAPSHOT'
  20. sourceCompatibility = '1.8'
  21.  
  22. repositories {
  23. mavenCentral()
  24. }
  25.  
  26.  
  27. dependencies {
  28. implementation('org.springframework.boot:spring-boot-starter-data-jpa')
  29. implementation('org.springframework.boot:spring-boot-starter-data-rest')
  30. implementation('org.springframework.boot:spring-boot-starter-web')
  31. runtimeOnly('com.h2database:h2')
  32. runtimeOnly('mysql:mysql-connector-java')
  33. compileOnly('org.projectlombok:lombok')
  34. testImplementation('org.springframework.boot:spring-boot-starter-test')
  35. }
  36.  
  37. # create and drop tables and sequences, loads import.sql
  38.  
  39. spring:
  40. profiles:
  41. active: development
  42. jpa:
  43. show-sql: true
  44. datasource:
  45. mysql:
  46. writer:
  47. url: jdbc:mysql://{master-hostname}:3306/pickstar
  48. username: {username}
  49. password: {password}
  50. driver-class-name: com.mysql.cj.jdbc.Driver
  51. reader:
  52. url: jdbc:mysql://{slave-hostname}:3306/pickstar
  53. username: {username}
  54. password: {password}
  55. driver-class-name: com.mysql.cj.jdbc.Driver
Add Comment
Please, Sign In to add comment