Your boss is a human being. There are good bosses and bad bosses, all of them are people trying to do their job. Don't forget this.
1) If your boss provided good feedback (I assume this is positive feedback) then accept it. That is cool.
2) What your boss says to other people doesn't really concern your work, does it? My advice would be for you to ignore it.
3) If anyone (including your boss) gives you valid criticism, take it. They are giving you free information on how to have more success. If the criticism is not valid, then ignore it.
4) Your boss might be a "dick" (there is no way for me to judge). But, for the sake of discussion let's say he is an actual, certifiable dick. So what? He is still your boss. You still have the same value as a worker and a human being.
You have two choices. Either you figure out how to make your job work for you, or you find another job.
I have had bosses that I loved, and I worked really hard for them to make their projects succeed. I had bosses that I thought were assholes. In any case, I don't let my boss determine my image of who I am as a person.