The Spanish scored a goal in each half, before surviving a late onslaught to finish as Group A winners.
Ten minutes later, they were ahead thanks to a quick break involving the same players. Jese beat his man on the right and crossed for Alcacer, who made no mistake from close range.
Shortly into the second half Spain scored their second. Kurt Zouma failed to deal with Oliver's long pass and Jese nipped in, taking a touch before firing into the bottom corner.
The French pushed hard for a goal in the final minutes, hitting both the post and the crossbar, before finally beating Sotres through Thibaut Vion.
It didn't matter in the end though, as Spain got their third win in as many games.