MongoDB and SpEL Expressions in @Document annotations

前端 未结 2 1233
闹比i
闹比i 2021-01-07 05:42

I am trying to use the SpEL to load the same Document into different collections based on some rules that i have defined.

So to start with what i have:

-firs

2条回答
  •  长发绾君心
    2021-01-07 06:32

    You could use mongo template's method instead: save(Object objectToSave, String collectionName).

提交回复
热议问题