Skip to content

Commit

Permalink
Fix syntax in validation examples
Browse files Browse the repository at this point in the history
  • Loading branch information
wonwoo authored and xcl(徐程林) committed Aug 16, 2020
1 parent d6dbf39 commit 7709345
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/docs/asciidoc/core/core-validation.adoc
Expand Up @@ -1891,12 +1891,11 @@ bean, as the following example shows:
import org.springframework.validation.beanvalidation.LocalValidatorFactoryBean;
@Configuration
public class AppConfig {
@Bean
public LocalValidatorFactoryBean validator() {
return new LocalValidatorFactoryBean;
return new LocalValidatorFactoryBean();
}
}
----
Expand Down Expand Up @@ -2050,12 +2049,11 @@ a custom extension, also by Hibernate Validator 4.3) into a Spring context throu
import org.springframework.validation.beanvalidation.MethodValidationPostProcessor;
@Configuration
public class AppConfig {
@Bean
public MethodValidationPostProcessor validationPostProcessor() {
return new MethodValidationPostProcessor;
return new MethodValidationPostProcessor();
}
}
Expand Down

0 comments on commit 7709345

Please sign in to comment.