CEERS: Spatially Resolved UV and mid-IR Star Formation in Galaxies at 0.2 < z < 2.5: The Picture from the Hubble and James Webb Space Telescopes