In the production environment, if the web service version information appears on the error page, it is considered unsafe, such as:
Block server version information
Enter the lib directory under the Tomcat installation directory, and then create new org\apache\catalina\util one by one,
Enter the util directory and create a new file ServerInfo.properties.
Edit ServerInfo.properties and configure server.info information, such as
server.info=abc
If it is Chinese, you need to perform unicode transcoding first, such as
server.info=\u4e0d\u544a\u8bc9\u4f60\u6211\u662f\u4ec0\u4e48\u670d\u52a1\u5668
Save and restart Tomcat to take effect.