Stojanović graduated from the military academy with the 22nd class and became an infantry lieutenant in 1892.
After the conquest of Rajčanski rid, as a key ground for victory in the Battle of Bregalnica, the commander of the First Army, Crown Prince Alexander I, was so delighted with the performance of the XII Regiment that he personally approached Stojanović (who commanded the unit), congratulated him, and removed the Order of Karađorđe's Star (with swords) from his chest and personally stuck it on the chest of Stojanović.[3]
Death and legacy
In the First World War in 1914, his Second Iron Regiment took part in the Battle of Cer, in its very center, on Tekeriš. He also distinguished himself as the commander of the Iron Regiment in the Battle of Kolubara. During the Battle of Kolubara, he contracted pneumonia. Seeing that his men were dying, Stojanović, although seriously ill, personally led the regiment in a new assault, and on that occasion Kremenica was conquered and Stojanović was killed.[4] The March on the Drina was composed in his honour.
A comic book publisher dedicated to the First World War called Linije fronta (Front Lines) published the comic book Gvozdeni (Iron) dedicated to Stojanović and his death during the Battle of Kolubara.