Preheat the oven to 210°C (190°C fan).
Pat the duck dry with kitchen paper. Mix the Chinese five spice and salt together and rub evenly over the duck, inside and out.
Heat oil in a pan over medium heat. Add ginger, spring onions, star anise, bay leaves, and cinnamon sticks. Fry for about 40 seconds until fragrant.
Spoon one-third of the aromatic mixture into the cavity of the duck. Spread the remaining mixture on a roasting tray and place the duck on top. Pour over the Shaoxing wine.
Roast for 1 hour until the duck is cooked and the skin is deep golden brown.
Meanwhile, make the hoisin sauce by combining all hoisin sauce ingredients in a saucepan. Bring to the boil, then reduce to a simmer for a few minutes until slightly thickened. Set aside.
Once the duck is cooked, transfer it to a clean tray. Mix the basting sauce ingredients together and brush over the duck skin.
Increase the oven temperature to 220°C (200°C fan) and roast for a further 5–10 minutes until the skin is crisp and glossy. Watch carefully to avoid burning.
Remove the duck, carve or shred the meat, and discard the bones.
Serve with warmed pancakes, hoisin sauce, cucumber, and shredded spring onions.