A milking system (1) comprises milking apparatus for milking of dairy animals, and comprising a plurality of wearing parts, inclusive of teat liners (11) and/or milk lines (12) and/or pulsation lines (13), and a computer system (7) configured to control and/or monitor the milking apparatus, and to generate a signal which indicates that one of the wearing parts should be replaced and provides a characterization of that wearing part, wherein the milking system further comprises a 3D printer (20), which is operatively connected to the computer system and which is configured to print the characterized part on the basis of the generated signal. Thus it is not necessary to keep an unnecessarily large stock of spare parts, but it becomes possible to directly provide the spare parts quickly, cheaply and with less chance of errors. Moreover, it is thus possible to, tailor the parts, especially teat liners, to animals.