Personally, I try to ignore them. Glaze over, look distant, say little, and they might get the message.
Just asking - how is this person boring? Just by talking trash for the sake of making noise, or just a genuine dull, un-charismatic person? We have the latter as a new manager at work - staff morale has evaporated as a result...