You are entitled to your own privacy and you don’t have to indicate any reasons for leaving your job. However, if you feel the need to share, avoid negative tones; your resignation notice is not the avenue for ranting.