File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed
src/main/kotlin/com/example/demo Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,9 @@ repositories {
20
20
21
21
dependencies {
22
22
implementation(" org.springframework.boot:spring-boot-starter" )
23
+ implementation(" org.springframework.boot:spring-boot-starter-validation" )
23
24
implementation(" org.jetbrains.kotlin:kotlin-reflect" )
25
+ implementation(" jakarta.persistence:jakarta.persistence-api:3.1.0" )
24
26
testImplementation(" org.springframework.boot:spring-boot-starter-test" )
25
27
testRuntimeOnly(" org.junit.platform:junit-platform-launcher" )
26
28
}
Original file line number Diff line number Diff line change
1
+ package com.example.demo
2
+
3
+ import org.springframework.context.annotation.Bean
4
+ import org.springframework.context.annotation.Configuration
5
+ import org.springframework.validation.beanvalidation.MethodValidationPostProcessor
6
+
7
+ @Configuration
8
+ class AppConfig {
9
+
10
+ @Bean
11
+ fun validationPostProcessor (): MethodValidationPostProcessor {
12
+ return MethodValidationPostProcessor ()
13
+ }
14
+ }
You can’t perform that action at this time.
0 commit comments