How to adjust an error due to system configuration problems (two types [associated with other external environments ]【★Self-Configuration★](★Follow web. xml★))

Source: Internet
Author: User

[Preface]

When modifying the code in the storage environment, we often encounter complicated functions (modules ).


These functions will be related to the functions of some external sites.

① For example, to interact with a site, pass several values to the site, and then obtain several return values. (Toto)

② For example, read some configuration files and use httpclient to read the content in an XML file (equivalent to accessing an external site) (Yahoo Club)

③ Take a fake image for example. (Yahoo Club)


At the same time, there will be some configuration for different environments (UT ita ITB.

④ For example, setting the key value, setting some filters, and encryption algorithms. (Yahoo Club)


① ② ③ Can be summarized as [association with other environments] (in the diff file)

At this time, we should pay attention to environment-related configuration! (This is easy to think)


The above-mentioned · ④ is not easy to think of. If you cannot think of it, it will be very laborious for you to locate the error,

Because of yourDirectionWrong !!

This is related to [Self-configuration]

In this case, the first step is to check the Web. xml file to see whether the Web. xml files (ITA and UT) are consistent between different environments.

In addition to the Web. xml file, the struts-config.xml file.

(④ There is a characteristic that sometimes there is no error log, but the error screen is still displayed)


Summary:(Confirmation of files headed by web. XML)

When looking for errors, do not go all the way to the dark. ("Associated with other external environments" and "self-configuration 」)

The two directions mentioned above should be investigated.

Post 1:

Today, this problem is actually in the wrong direction.

In fact, there are no problems with the configuration files in diff !!!

We only add a filter to the Web. xml file.

In another configuration file, there is a key value to determine whether to use this filter.

Subsequent 2:

I personally think that this processing was not good at the time !!!

The key value in a configuration file in Yahoo does not take that filter for processing. (The diff configuration file is not zoomed in)

The key of your judgment should be placed in diff.

The diff file is specially set to differentiate different environments !!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.