The construction of the solution of the generalized nonlinear Schrödinger equation is analyzed.Firstly,the nonlinear Schrödinger equation is transformed into an ordinary differential equation by traveling wave transformation,and the system disper-sion relation is obtained.Then the solution is constructed by(G′/G2)expansion method,and a series of exact solutions of generalized nonlinear Schrödinger equation are constructed.At the same time,it is proved that the method and procedure are effective and appli-cable to construct the exact solution of nonlinear Schrödinger equation.