application.properties 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. spring.application.name=backend_springboot
  2. spring.mvc.view.prefix=/WEB-INF/views/
  3. spring.mvc.view.suffix=.jsp
  4. # DataSource settings: set here your own configurations for the database
  5. # connection.
  6. spring.datasource.url = jdbc:postgresql://localhost:5432/project_springboot
  7. spring.datasource.username = postgres
  8. spring.datasource.password = postgres
  9. # Keep the connection alive if idle for a long time (needed in production)
  10. spring.datasource.testWhileIdle = true
  11. spring.datasource.validationQuery = SELECT 1
  12. # Show or not log for each sql query
  13. spring.jpa.show-sql = true
  14. # Hibernate ddl auto (create, create-drop, update)
  15. spring.jpa.hibernate.ddl-auto = update
  16. # Naming strategy
  17. spring.jpa.hibernate.naming-strategy = org.hibernate.cfg.ImprovedNamingStrategy
  18. # Use spring.jpa.properties.* for Hibernate native properties (the prefix is
  19. # stripped before adding them to the entity manager)
  20. # The SQL dialect makes Hibernate generate better SQL for the chosen database
  21. spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.PostgreSQLDialect
  22. # Fix Postgres JPA Error (Method org.postgresql.jdbc.PgConnection.createClob() is not yet implemented).
  23. #spring.jpa.properties.hibernate.jdbc.lob.non_contextual_creation=true
  24. #To change logging levels in the app
  25. # logging.level.org.springframework.web = trace
  26. # logging.level.org.hibernate = trace
  27. # IMPORTANT: to use data.sql file has to be uncommented
  28. #spring.sql.init.mode = always
  29. #pl.dmcs.eldarmuk.jwtSecret = jwtSecretKeyjwtSecretKeyjwtSecretKeyjwtSecretKeyjwtSecretKeyjwtSecretKeyjwtSecretKeyjwtSecretKeyjwtSecretKeyjwtSecretKeyjwtSecretKeyjwtSecretKeyjwtSecretKeyjwtSecretKeyjwtSecretKey
  30. #pl.dmcs.eldarmuk.jwtExpiration = 3600