Skip to content

Commit 2b3820e

Browse files
Fix ApplicationContext loading: remove @validated from ValidationConfig
- Remove @validated annotation from @configuration class - @validated on @configuration classes can cause context loading issues - Validation is already enabled by spring-boot-starter-validation dependency
1 parent 590550e commit 2b3820e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
package com.example.demo.config;
22

33
import org.springframework.context.annotation.Configuration;
4-
import org.springframework.validation.annotation.Validated;
54

65
@Configuration
7-
@Validated
86
public class ValidationConfig {
7+
// Configuration for validation - @Validated is handled by Spring Boot automatically
8+
// when spring-boot-starter-validation is on the classpath
99
}
1010

0 commit comments

Comments
 (0)