There are really few connectors that can't handle 24V DC. Until you reach 50-75V there aren't really issues unless you have significant overvoltages or transients.
For reference a 0.3mm pitch ZIF connector (the smallest thing I have the docs near me) is rated for 50V. A terminal block like the one in the picture is easily rated for 250VAC, and a standard DIN barrel connector (more or less the one in the picture) is rate for 20V typical (the CUI parts, at least) but in practice it shouldn't have issues.
One thing I noticed with these china made adapter is that the soldering inside is… dubious: had one failed and upon inspection (as in cut it open) the wire and the solder were cleanly detached from the barrel (no flux or bad cleaning, most probably)
Anyway both terminal blocks and DC plugs are easily available for soldering, if you want to.