Deep learning incorporating physics knowledge has become a powerful tool for studying the dynamic behavior of high-dimensional nonlinear systems. In this paper, the two-stage mini-batch resampling of adaptive physics-informed neural network (TMA-PINN) method is proposed to solve the (2 + 1)-dimensional variable-coefficient Lugiato-Lefever equation (vLLE). The vortex soliton in the WGM microresonator with different external excitation is investigated by TMA-PINN. It is found that external excitation can cause the rotation of vortex solitons. In addition, the effect of topological charge and external excitation on the dynamical characteristics of spatial solitons including vortex solitons and multipole solitons are investigated. The results show that the final shape of the rotation of vortex solitons and the number of azimuth lobes of multipole solitons are controlled by topological charges. Compared with classical PINN, TMA-PINN can better handle the gradient balance of various loss terms in (2 + 1)-dimensional vLLE to reconstruct the dynamic behavior of WGM microresonator solitons, having potential applications in other nonlinear systems.