mirror of
https://github.com/jlengrand/spring-petclinic-kotlin.git
synced 2026-03-10 08:41:20 +00:00
Upgrade to Spring Boot 2.1.0
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 application’s 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
|
||||
|
||||
Reference in New Issue
Block a user