Gastric ulcers do not necessarily require long-term medication to be cured, acid inhibitors and gastric mucosal protectants can be given, and generally 6 to 8 weeks of treatment can achieve a better result, and if Helicobacter pylori is infected, four-pronged therapy can usually be given. Gastric ulcers can generally be given acid inhibitors, such as rabeprazole, pantoprazole, etc. inhibit the secretion of gastric acid, reduce the acidity in the stomach, which will help the healing of the ulcer surface. Combined application of gastric mucosal protective agents, such as colloidal bismuth pectin, magnesium aluminum carbonate chewable tablets and other medications, usually 6 to 8 weeks of treatment can be cured. If Helicobacter pylori infection exists, quadruple therapy can be given, such as omeprazole, amoxicillin, clarithromycin, colloidal bismuth pectin and other treatments, which can usually be cured in 6 to 8 weeks, and usually do not need long-term medication. It is recommended to consult a doctor in time and use medication under the guidance of a physician.