Web project under SSM framework, web Function of XML configuration file (detailed explanation)

1. web. The characterencoding filter is configured in XML to intercept all resources and set the number format.

Setting encoding to UTF-8 is equivalent to request setCharacterEncoding("UTF-8");

Setting foreencoding to true is equivalent to response setCharacterEncoding("UTF-8");

2. web. XML configuration dispatcherservlet, which is configured to intercept all requests and forward them to spring MVC

Intercept all requests and load all SSM configuration files (the path is classpath: ---)

The above web project under the SSM framework, web The function of XML configuration file (detailed explanation) is all the content shared by Xiaobian. I hope it can give you a reference and support programming tips.

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>