- Kotlin Blueprints
- Ashish Belagali Hardik Trivedi Akshay Chordiya
- 132字
- 2021-07-02 21:50:17
Application configuration
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 data-source properties (database) point to our PostGIS database:
url: "jdbc:postgresql_postGIS://localhost/YOUR_DATABASE_NAME"
Make sure to change YOUR_DATABASE_NAME to the name of your PostGIS database, also change the username and password based on your database credentials.
推薦閱讀
- 微服務(wù)與事件驅(qū)動(dòng)架構(gòu)
- Java從入門(mén)到精通(第5版)
- 精通軟件性能測(cè)試與LoadRunner實(shí)戰(zhàn)(第2版)
- React.js Essentials
- Python數(shù)據(jù)分析(第2版)
- C語(yǔ)言從入門(mén)到精通
- HTML+CSS+JavaScript網(wǎng)頁(yè)設(shè)計(jì)從入門(mén)到精通 (清華社"視頻大講堂"大系·網(wǎng)絡(luò)開(kāi)發(fā)視頻大講堂)
- Beginning C# 7 Hands-On:The Core Language
- Koa與Node.js開(kāi)發(fā)實(shí)戰(zhàn)
- ANSYS FLUENT 16.0超級(jí)學(xué)習(xí)手冊(cè)
- Swift 2 Blueprints
- jBPM6 Developer Guide
- jQuery基礎(chǔ)教程(第4版)
- Activiti權(quán)威指南
- 大學(xué)計(jì)算機(jī)基礎(chǔ)