December 2017
Intermediate to advanced
260 pages
7h 34m
English
SpringApplication will load properties from the application.yml file and add them to the Spring Environment.
Let's specify properties for our Spring application in the application.yml file:
logging: level: org.springframework.web.servlet: INFO spring: datasource: platform: "postgis" driver-class-name: "org.postgis.DriverWrapper" url: "jdbc:postgresql_postGIS://localhost/geo" username: "postgres" password: "root" mvc: async: request-timeout: 1000000
Tasync request timeout is crucial because saving the message into the database takes time and the process is asynchronous and an event is triggered when it is saved. Here the response takes more time than normal to get back, hence we increase the request timeout.
The ...
Read now
Unlock full access