Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # 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://localhost:3306/eventwebservice?useUnicode=yes&characterEncoding=UTF-8
- spring.datasource.username = mateusz
- spring.datasource.password = mateusz
- # 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 = update
- # 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
- #server
- #server.tomcat.uri-encoding = ISO 8859-1
- #freemarker
- #spring.freemarker.charset = ISO 8859-1
- # Charset of HTTP requests and responses. Added to the "Content-Type" header if not set explicitly.
- spring.http.encoding.charset=UTF-8
- # Enable http encoding support.
- spring.http.encoding.enabled=true
- # Force the encoding to the configured charset on HTTP requests and responses.
- spring.http.encoding.force=true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement