Every fingering that fits a hand
7654
hard
7999
hard
x224
moderate · barre · no 5
7699
hard · no 5
769x
easy · no 5
What is true of it
Dmaj7 is D, F♯, A and C♯ — 1, 3, 5 and 7 counted from D.
On an instrument that cannot reach all 4, the 5 goes first, in that order.
The easiest of the 5 fingerings below is 7654: 4 fingers, held at the 4th fret.
None of them uses an open string, so this chord moves up the neck unchanged — the same shape 1 fret higher is the chord a semitone above.
1 of the 5 need a barre.
Where its notes are on the neck
The brass dots are D, the root. Everything else is a chord tone with its degree printed in it.
With a different note underneath
Dmaj7/A
2224
Dmaj7/C♯
6655
An inversion is the same chord with a different note lowest. The name changes to a slash name because the bass is what a listener hears as the foundation.