Class EntityModuleConfiguration
java.lang.Object
com.foreach.across.modules.entity.config.EntityModuleConfiguration
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.validation.SmartValidator
entityValidator
(org.springframework.validation.SmartValidator defaultValidator) Expose the default validator as the validator to be used for entity validation.void
registerConverters
(org.springframework.format.support.FormattingConversionService mvcConversionService, EntityRegistry entityRegistry)
-
Constructor Details
-
EntityModuleConfiguration
public EntityModuleConfiguration()
-
-
Method Details
-
registerConverters
@Autowired public void registerConverters(org.springframework.format.support.FormattingConversionService mvcConversionService, EntityRegistry entityRegistry) -
entityValidator
@Bean(name="entityValidator") @Exposed @ConditionalOnMissingBean(name="entityValidator") public org.springframework.validation.SmartValidator entityValidator(org.springframework.validation.SmartValidator defaultValidator) Expose the default validator as the validator to be used for entity validation. Use ofEntityValidator
in external modules is discouraged.
-