This spring, labor markets gained strength locally and nationally, the UMass report said, rebounding after an unusually harsh winter that slowed consumer spending and exports.

Massachusetts employment grew at a 1.7 percent annual rate in the second quarter, up from 1.2 percent in the first quarter, said Alan Clayton-Matthews, a professor of economics at Northeastern University who compiles and analyzes the data used in the UMass estimate.

Nationally, employment grew at a 2.2 percent annual rate in the second quarter, up from 1.5 percent in the first.