The Austrian rider prevailed in a scrappy bunch sprint at the end of the 165.5km stage from Yanqing to Chang Ping.
The 21-year-old came off the wheel of Lampre veteran Alessandro Petacchi to claim the first professional victory of his career.
Another Italian Elia Viviani, winner of stage one, was third.
Alex Howes (Garmin-Sharp), Jeremy Roy (FDJ-Big Mat), Timofey Kritskiy (Katusha), Mitchell Docker (Orica GreenEdge) and Britain's Alex Dowsett (Sky) escaped inside the opening 20km and built up a lead of 6:30 after 65km.
The gap was down to 3:50 as they reached the summit of the first of a trio of category-three climbs with 52.5km remaining.
Frenchman Roy attacked his fellow escapees shortly after but his brave bid for a stage victory was foiled inside the final 6km as the sprinters' teams ensured it would be a bunch gallop to the line.
Germany's world time trial champion Tony Martin retains his 40 second lead on general classification going into Saturday's final stage.
All 18 WorldTour teams and the Chinese national team line up in the second edition of the five-day race.
- Jeremy Roy
- Alessandro Petacchi
- Alex Dowsett
- Elia Viviani