In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly shows you "how to solve the tomcat start-up ssm project garbled problem", the content is easy to understand, well-organized, hope to help you solve the doubt, the following let the editor lead you to study and learn "how to solve the tomcat start-up ssm project garbled problem" this article.
0. Causes of garbled codes: the encoding and decoding methods are different. 1. Solutions to garbled codes [recommended]:
Add a request encoding filter to the configuration file web.xml of tomcat:
CharacterEncodingFilter org.springframework.web.filter.CharacterEncodingFilter encoding utf-8 forceRequestEncoding true forceResponseEncoding / * 2, But still garbled: suddenly found that the jsp file as a view is encoded in ISO-8859-1 The default is not utf-8 solution: change the encoding mode of jsp file to utf-8
3. The experience gained from this garbled code: the next time you do a web project, the view uses jsp. Remember to modify the compiler's jsp file encoding mode to utf-8 first or to configure the compiler preparation when installing the compiler. Remember, modify the jsp file coding mode to utf-8 to facilitate the development of the web project.
The above is all the contents of this article entitled "how to solve the problem of garbled code when tomcat starts the ssm project". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.