Refactor some code in Java8 and transform properties file to yaml file.

This commit is contained in:
2019-07-29 22:10:45 +02:00
parent 54e15ffa59
commit 126126b28e
15 changed files with 304 additions and 202 deletions

View File

@@ -0,0 +1,43 @@
app:
name: Codiki
description: A wiki application.
codiki:
files:
upload: /opt/codiki/pictures/tmp
profile-images: /opt/codiki/pictures/profiles
images: /opt/codiki/pictures/posts
cors.enabled=false:
logging:
file: codiki
level:
org.codiki: DEBUG
# org.hibernate: DEBUG
path: /opt/codiki/logs
server:
# use-forward-headers=true
port: 8080
# ssl:
# key-store: /home/takiguchi/Developpement/Java/codiki/keystore.p12
# key-store-password: aaSrTBqpyRbwLhLi7iVwat2QWHCFQr3e4B9UkBpBPoUxH5UGdJpwenWAKZNTXwgww227CtBYUHogXivRdKpeyHPu2UafsPkGNuKgnDyzZfceFN5r3CxT2eTt
# keyStoreType: PKCS12
# keyAlias: tomcat
# whitelabel:
# enabled: false
spring:
jpa:
datasource:
driverClassName: org.postgresql.Driver
url: jdbc:postgresql://localhost:5432/codiki
username: codiki
password: P@ssword
# Because detection is disabled you have to set correct dialect by hand.
database-platform: org.hibernate.dialect.PostgreSQL9Dialect
# Disable feature detection by this undocumented parameter.
# Check the org.hibernate.engine.jdbc.internal.JdbcServiceImpl.configure method for more details.
properties.hibernate.temp.use_jdbc_metadata_defaults: false
servlet.multipart.max-file-size: 104857600