Используйте следующий код, это устранило мою проблему во всех трех браузерах (FF, IE и Chrome):
<input type="submit" name="update" value=" Apply "
style="position: absolute; height: 0px; width: 0px; border: none; padding: 0px;"
hidefocus="true" tabindex="-1"/>
Добавить строку выше в качестве первой строки в вашем коде с соответствующим значением имени и значения .
Измените свою TypedAggregation
часть ниже и добавьте поле students
в StudentResults
TypedAggregation<Student> studentAggregation = Aggregation.newAggregation(Student.class,
Aggregation.group("firstName").
push("$$ROOT").as("students"));
$$ ROOT будет толкать весь документ.
Обновление:
TypedAggregation<Student> studentAggregation = Aggregation.newAggregation(Student.class,
Aggregation.group("firstName").
push(new BasicDBObject
("_id", "$_id").append
("firstName", "$firstName").append
("lastName", "$lastName")).as("students"));
$$ROOT
? – developer 15 March 2017 в 18:38Aggregation.group("firstName", "lastName")
– Veeram 15 March 2017 в 19:07