Announcement Announcement Module
Collapse
No announcement yet.
MongoDB disable validation via JavaConfig Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • MongoDB disable validation via JavaConfig

    Hi!

    Disabling validation for MongoDB via XML is done this way:
    Code:
    <mongo:mapping-converter disable-validation="true" />
    How could the same be done in JavaConfig?

    Unfortunately, I was unable to find any documentation regarding this issue.
    Also, I did not find anything in the forums.

    Thanks in advance!

    Best
    Martin

  • #2
    You don't need to do it as by default in JavaConfig, no validation is activated. If you want to enable it use a LocalValidatorFactoryBean and create a ValidatingMongoEventListener with that just set up Validator instance.

    Comment

    Working...
    X