Certainly we've had technological advancements from military-funded research, but this research is not "the military," and can demonstrably occur outside a military environment.
Military research = the source of most(at least many) major technological innovations = civilian research that is funded by the military for military purposes
(In the US and abroad military research is development with specifications which is contracted out to private companies.)
Military research /=/ (does not equal) the military
Having a military /=/ (does not equal) wars
A war HELPS justify funding of a larger military
A larger military HELPS justify funding of military research programs
Military research programs HELP provide innovators with the resources and motivation to innovate
In modern times does the military majorly contribute to the most advanced engineering development?
Since I was a little boy, I've planned on improving technology in order to push humans into the technological future because generally lives improve as technology does. I am now trying (I also planned this part from when I was young) to become a mechanical engineer that works on projects for the military.
Does that answer your question?