December 2017
Intermediate to advanced
260 pages
7h 34m
English
We define our SpringApplication class to launch our Spring Boot application from the Kotlin code. It reads the application configuration from application.yml in our case, but supports being read from various sources.
We use @SpringBootApplication to launch our application as a Spring Boot application and @EnableTransactionManagement to enable database transaction support for databases:
/** * To launch Spring Boot application and hold the application level properties */ @SpringBootApplication @EnableTransactionManagement class Application { /** * To deserialize-serialize the PostGIS data structures */ @Bean fun objectMapper(): ObjectMapper = Jackson2ObjectMapperBuilder() .modulesToInstall(PostGISModule()) .serializationInclusion(JsonInclude.Include.NON_NULL) ...
Read now
Unlock full access