The general political leaning of the officer corps matches the larger college educated class, albeit with more apolitical and weird third party support
then there's the officer corps, aka college graduates raised on the idea of American exceptionalism, who often don't like the way Trump makes the nation smell. again, not a universal rule - but a real thing.
Officer corps do not generally like people who are going to get the military involved in spurious, pointless, sudden wars because the Child-in-Chief thought Germany's diplomat looked at him funny.