春梦 has two main uses: (1) literally, an erotic dream (
春 = spring, associated with sexuality in classical Chinese); (2) figuratively, a beautiful but fleeting illusion. The figurative sense is the more common usage in modern written Chinese and is not vulgar.