There was mandatory military service until 2011 when it was paused. Since then Germany had a purely professional army like the US. Mandatory military service was 9-12 months basic training, which could be objected on moral grounds. Objection meant doing alternative (civil) service for the time (e.g. working in a hospital, school, THW, etc.).