As per research (America) 1 in every 10 people suffers from Ulcer, hence it is a serious situation.
Usually, the situation comes from Non-steroidal anti-inflammatory drugs (Eg: Aspirin), Stress (Indirect Effect), Immunity Disorder, Alcoholism and Smoking.
Here are the foods which help to recover or control from Stomach Ulcer,
Cabbage or Cabbage Juice
Banana or Banana Shakes
Slippery Elm Powder
What to avoid: Coffee, Carbonated drinks, salty red meats, deep fried foods, chilis and hot pepper
*All these suggestions are based on internet research and kindly apply as per experts advice.