Classical solutions for SPDEs with Dirichlet boundary conditions