The invention discloses a wholly ecological vegetable planting method. The wholly ecological vegetable planting method includes the following steps of 1, planting management, wherein stem vegetables, leaf vegetables and melon and fruit vegetables are selected to be subjected to crop rotation, and weeding and watering are conducted regularly; 2, field management, wherein after the vegetables are harvested, a microbial agent is sprayed on residual vegetable branches, then, the residual vegetable branches are evenly laid in soil, a cultivator is adopted to plough the soil, then, the soil is decayed, and after organic fertilizer, chitosan, soluble protein, alkaline phosphatase and urease are applied, the soil is tedded and prepared into furrows; 3, disease and pest prevention and treatment, wherein insecticidal lamps are arranged on the surface of a vegetable field in coordination with attractant to eliminate pests, an electromagnetic radiation emission device is arranged on a planting area, and electromagnetic radiation is adopted to kill the pests at night. According to the wholly ecological vegetable planting method, the stem vegetables, the leaf vegetables and the melon and fruit vegetables are adopted to be subjected to the crop rotation, and different kinds of vegetables are different in root-system depth and in fertilizer absorption and application. The wholly ecological vegetable planting method has the advantages of being comprehensive in fertilizer absorption, high in fertilizer utilization rate and high in vegetable yield.