Guest User

Untitled

a guest
Dec 10th, 2018
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. @Data
  2. @Entity
  3. @EntityListeners(AuditingEntityListener.class)
  4. public class Province {
  5.  
  6. @Id
  7. @GeneratedValue(strategy = GenerationType.IDENTITY)
  8. Long Id;
  9.  
  10. String name;
  11.  
  12. @Column(nullable = false, columnDefinition = "MultiPolygon")
  13. MultiPolygon multiPolygon;
  14.  
  15. }
  16.  
  17. server:
  18. port: 8080
  19.  
  20. logging:
  21. level:
  22. com.mousavi007.serverhavadan: debug
  23. spring:
  24. mail:
  25. host: smtp.gmail.com
  26. port: 587
  27. username:********
  28. password: ******
  29. properties:
  30. mail:
  31. smtp:
  32. auth: true
  33. starttls:
  34. enable: true
  35. protocol: smtp
  36. default-encoding: utf-8
  37.  
  38. datasource:
  39. url: jdbc:mysql://localhost:3306/havadan
  40. username: *************
  41. password: *************
  42. platform: mysql
  43. jpa:
  44. hibernate:
  45. ddl-auto: update
  46. database-platform: org.hibernate.dialect.MySQL8Dialect
  47.  
  48. database: mysql
  49. show-sql: true
Add Comment
Please, Sign In to add comment