A milking system includes a milking apparatus for milking of dairy animals, and a plurality of wearing parts, inclusive of teat liners and/or milk lines and/or pulsation lines. The system further includes a computer system 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. The milking system further includes a 3D printer operatively connected to the computer system and 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.