Trajectory prediction serves as a prerequisite for future trajectory-based operation, significantly reducing the uncertainty of aircraft movement information within airspace by scientifically forecasting the three-dimensional positions of aircraft over a certain period. As convergence points in the aviation network, airport terminal airspace exhibits the most complex traffic conditions in the entire air route network. It has stronger mutual influences and interactions among aircraft compared to the en-route phase. Current research typically uses the trajectory time series information of a single aircraft as input for subsequent predictions. However, it often lacks consideration of the close-range spatial interactions between multiple aircraft in the terminal airspace. This results in a gap in the study of aircraft trajectory prediction that couples spatiotemporal features. This paper aims to predict the four-dimensional trajectories of aircraft in terminal airspace, constructing a Spatio-Temporal Transformer (ST-Transformer) prediction model based on temporal and spatial attention mechanisms. Using radar aircraft trajectory data from the Guangzhou Baiyun Airport terminal airspace, the results indicate that the proposed ST-Transformer model has a smaller prediction error compared to mainstream deep learning prediction models. This demonstrates that the model can better integrate the temporal sequence correlation of trajectory features and the potential spatial interaction information among trajectories for accurate prediction.