Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server.port = 5000
- #spring.data.rest.basePath = /api/v1
- spring.data.rest.default-page-size = 5
- #Logger config
- logging.level.org.springframework.web=INFO
- logging.level.guru.springframework.controllers=INFO
- logging.level.org.hibernate=ERROR
- logging.file=logs/spring-boot-logging.log
- logging.level.com.tripoo.controller=INFO
- #database
- # DataSource settings: set here your own configurations for the database
- # connection. In this example we have "netgloo_blog" as database name and
- # "root" as username and password.
- spring.datasource.url = jdbc:mysql://127.0.0.1:5123/tripoo_database
- spring.datasource.username = root
- spring.datasource.password = root
- spring.datasource.driverClassName= com.mysql.cj.jdbc.Driver
- # Keep the connection alive if idle for a long time (needed in production)
- spring.datasource.testWhileIdle = true
- spring.datasource.validationQuery = SELECT 1
- # Show or not log for each sql query
- spring.jpa.show-sql = true
- # Hibernate ddl auto (create, create-drop, update)
- spring.jpa.hibernate.ddl-auto = create-drop
- # Naming strategy
- spring.jpa.hibernate.naming.strategy = org.hibernate.cfg.ImprovedNamingStrategy
- # Use spring.jpa.properties.* for Hibernate native properties (the prefix is
- # stripped before adding them to the entity manager)
- # The SQL dialect makes Hibernate generate better SQL for the chosen database
- spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5Dialect
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement