Advertisement
Guest User

Untitled

a guest
May 8th, 2016
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.39 KB | None | 0 0
  1. # ===================================================================
  2. # APPLICATION PROPERTIES
  3. # ===================================================================
  4.  
  5. # ----------------------------------------
  6. # CORE PROPERTIES
  7. # ----------------------------------------
  8.  
  9. # LOGGING
  10. logging.file=logs/app.log
  11. logging.level.root=WARN
  12. logging.level.com.example=INFO
  13. logging.level.org.hibernate.SQL=INFO
  14. logging.level.org.hibernate.type.descriptor.sql.BasicBinder=INFO
  15.  
  16. # THYMELEAF (ThymeleafAutoConfiguration)
  17. spring.thymeleaf.cache=false
  18.  
  19. # ----------------------------------------
  20. # WEB PROPERTIES
  21. # ----------------------------------------
  22.  
  23. # MULTIPART (MultipartProperties)
  24. multipart.max-file-size=10MB
  25. multipart.max-request-size=100MB
  26.  
  27. # EMBEDDED SERVER CONFIGURATION (ServerProperties)
  28. server.port=8080
  29. server.session.timeout=900
  30.  
  31. # ----------------------------------------
  32. # SECURITY PROPERTIES
  33. # ----------------------------------------
  34. # SECURITY (SecurityProperties)
  35. security.basic.enabled=false
  36.  
  37. # ----------------------------------------
  38. # DATA PROPERTIES
  39. # ----------------------------------------
  40. # DATASOURCE (DataSourceAutoConfiguration & DataSourceProperties)
  41. #spring.datasource.driverClassName=com.mysql.jdbc.Driver
  42. #spring.datasource.url=jdbc:mysql://localhost/test
  43. spring.datasource.driverClassName=org.h2.Driver
  44. spring.datasource.url=jdbc:h2:file:./database/test;MODE=PostgreSQL;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE
  45. spring.datasource.username=user
  46. spring.datasource.password=user
  47.  
  48. ### test and validation for connection
  49. spring.datasource.test-on-borrow=true
  50. spring.datasource.validation-query=SELECT 1
  51. ### remove connection when abolish
  52. spring.datasource.remove-abandoned=true
  53. spring.datasource.remove-abandoned-timeout=30
  54. ### Settings of Connection pool
  55. spring.datasource.max-active=50
  56. spring.datasource.max-idle=8
  57. spring.datasource.min-idle=8
  58. spring.datasource.initial-size=10
  59. ## Number of ms to wait before throwing an exception if no connection is available.
  60. spring.datasource.max-wait=10000
  61.  
  62. # H2 Web Console (H2ConsoleProperties)
  63. #spring.h2.console.enabled=false # Enable the console.
  64. #spring.h2.console.path=/h2-console # Path at which the console will be available.
  65.  
  66. # JPA (JpaBaseConfiguration, HibernateJpaAutoConfiguration)
  67. #spring.jpa.database-platform=org.hibernate.dialect.MySQLDialect
  68. spring.jpa.database-platform=org.hibernate.dialect.H2Dialect
  69. spring.jpa.hibernate.ddl-auto=update
  70. #spring.jpa.show-sql=true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement