Upgrade to Spring Boot 2.1.0

This commit is contained in:
Antoine Rey
2018-11-05 16:31:23 +01:00
parent ad885969df
commit 2791b82ffb
4 changed files with 7 additions and 9 deletions

View File

@@ -2,7 +2,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
val kotlinVersion = "1.2.30"
id("org.springframework.boot") version "2.0.6.RELEASE"
id("org.springframework.boot") version "2.1.0.RELEASE"
id("org.jetbrains.kotlin.jvm") version kotlinVersion
id("org.jetbrains.kotlin.plugin.spring") version kotlinVersion
id("io.spring.dependency-management") version "1.0.6.RELEASE"

View File

@@ -5,7 +5,7 @@ This is a [Kotlin](https://kotlinlang.org/) version of the [spring-petclinic][]
## Technologies used
* Language: Kotlin
* Core framework: Spring Boot 2.0 with Spring Framework 5 Kotlin support
* Core framework: Spring Boot 2.1 with Spring Framework 5 Kotlin support
* Server: Netty
* Web framework: Spring MVC
* Templates: Thymeleaf and Bootstrap

View File

@@ -32,11 +32,7 @@ import org.springframework.validation.Validator
* @author Antoine Rey
*/
class PetValidator : Validator {
override fun validate(obj: Any?, errors: Errors) {
if (obj == null) {
return
}
override fun validate(obj: Any, errors: Errors) {
val pet = obj as Pet
val name = pet.name
// name validation

View File

@@ -10,13 +10,15 @@ spring.thymeleaf.mode=HTML
spring.jpa.hibernate.ddl-auto=none
spring.jpa.open-in-view=true
# Hibernate will bootstrap in a separate thread while the rest of your applications startup processing proceeds in parallel
spring.data.jpa.repositories.bootstrap-mode=deferred
# Internationalization
spring.messages.basename=messages/messages
# Actuator / Management
management.endpoints.web.base-path=/manage
# Spring Boot 1.5 makes actuator secure by default
management.endpoints.web.enabled=true
management.endpoints.web.exposure.include=*
# Logging
logging.level.org.springframework=INFO