In the project development process, often encountered the situation of service attack, although the interface in the design process has a considerable number of security measures, such as cookie check, wind control, access to fuse and other related technologies to ensure the security of services, but it is necessary to collect analysis of these attack requestors, To provide data protection for wind-controlled big data.
Talk less, first look at the server error log: The following
Found that there are many such errors, it is felt that some people use the tool for mass attacks, and so on, is not a good person.
Looking at its stack information, I can't see what it is, like which interface? Request an address? Like, this kind of mistake has no use at all, want it to dry hair? Do you consume disk?
SPRINGMVC provides controlleradvice and exceptionhandler annotations that are very useful for handling request exception information. Exception information can be customized to make the exception information more fully understandable.
It's a lot better, it's just simple.
Spring MVC Controller Exception Handling summary