A popular Hampshire pub in a picturesque location has announced it will be closing it doors after 30 years of trading.