Eclipse中统一设置为UTF-8,以避免乱码。 在eclipse中设置:windows---> Preference---> Content Type-->选择jsp、java等,在encoding里输入UTF-8, 点击Update.