Gastric ulcer is a symptom that occurs when the gastric mucosa is digested by gastric acid and pepsin due to weakening of the mucus bicarbonate barrier layer on the surface of the gastric mucosa caused by medications, psychiatric factors, and other factors.