Who was credited for writing Canon in D major?

Pachelbel's Canon, also known as Canon in D major is the most famous piece of music by German Baroque composer Johann Pachelbel.