It would need to be paired with expert diplomacy at a minimum. I can think a few countries with no military Costa Rica and Lichtenstein. Costa Rica defers to allies in time of conflict and Lichtenstein just pays another country for their military.
According to wikipedia most are island nations and get to rely on the ocean and vast distance for safety: https://en.wikipedia.org/wiki/List_of_countries_without_arme...
It doesn't seem like anyone simply cedes territory and gets to stay a country.
The people allow the government a monopoly on violence in expectation that it will use it for their benefit. Putting the ultimate responsibility for national defense back on them is a betrayal of that trust.
What about a person who would fight and not desert if conscripted, but would not volunteer?
Are they "willing to be part of that defense," or not?
I submit that most people fall in that category, and that conscription is aimed at them.
Sure, OK.
Slavery is not the worst possible state of existence, you know. My dog is not only a slave, but a captive slave: she can't leave my property, and I punish her when she tries to leave. But, looking at her dozing off in the sun right now, she seems pretty happy.
Most people prefer the soft slavery of possible conscription, to the expected outcomes of foreign invasion. It helps that when you get conscripted, a bunch of other people are getting conscripted---or in other words, part of the compensation for getting conscripted is a whole army to defend your homeland.
That's actually a very typical war propaganda. In reality you are defending the order your state imposes on you and everyone. In slave terms you are defending your master's desire to control you from other masters. And that's it.
Just go without, and tell the population that you don't have enough forces to serve as a deterrent, so if the neighbor decides to invade you're just going to voluntarily cede any territory they ask for.