Dietary and lifestyle choices may help manage gastritis and stomach ulcers. Foods such as broccoli ... Eating a nutritious diet may help improve the health of the gastric environment.