Cucumber (Cucumis sativus L.) is one of the main vegetable crops in China. The physiological cultivation mechanism and gene function characteristics of cucumber are of great significance to the construction of modern agriculture. Due to the low genetic transformation rate of cucumber, only in situ hybridization, which does not involve the progress of gene modified transformation, is convenient to study mRNA localization, so it is more suitable for determination on mRNA localization in the mature tissue of cucumber. At present, the existing in situ hybridization technology system is more suitable for cucumber meristem than for the mature tissue of cucumber seedlings. Therefore, we optimized the traditional plant in situ hybridization protocol. Taking a known gene CsNPF7.2 (Nitrate Transporter Families protein) as an example, we then optimized the steps of plant tissue culture, gene probe preparation, plant material sampling and fixation, preparation of cross section, hybridization pretreatment, hybridization incubation, chromogenic reaction, microscopy examination, and treatment after reaction termination in order to obtain a new RNA in situ hybridization technique suitable for identification on mRNA localization in mature tissues of cucumber seedlings. This optimized technique will ensure the yield of probes, the integrity of RNA molecules, and the clarity and integrity of plant tissue structure, which is conducive to the study of gene function and screening of key genes in cucumber.