The wall temperature of the high-speed aircraft increases quickly under hypersonic/supersonic incoming flow, which will cause a significant change in the flow structure. To study the transition of the flow type in the supersonic cavity controlled by the wall temperature, numerical simulations are conducted. The cavity length-to-depth ratio (L/D) is varied from 10 to 15, and the wall temperature ranges from 300 K to 1300 K. The results indicate that the type of cavity flow with an L/D ratio of 13 transforms from a closed cavity flow to a transitional cavity flow, when the temperature reaches approximately 775 K. And the transitional temperature rises with the elevated total temperature of the incoming flow. Furthermore, the mechanism of the cavity flow change with wall temperature could be the competition between the recirculation zone and the shear layer in the cavity. The rising pressure with higher wall temperature in the recirculation zone weakens the downward development of the cavity shear layer, preventing it from hitting the cavity floor. As a result, the mass exchange of cavity lip surface, pressure distribution, total pressure recovery coefficient, and heat transfer distribution in the supersonic cavity change dramatically. The critical wall temperature also affected by the sidewall effects and the inflow Mach number.