tomcat限制IP访问

tomcat启动限制IP访问:
1、修改eclipse中的server项目中的server.xml,在标签中添加如下:
 


2、在eclipse外面的sever目录中修改是无效的
原因:eclipse中每次启动都会生成server.xml,然后覆盖外面的server.xml;

 

参考内容:https://blog.csdn.net/z507263441/article/details/40742075

 

备注:多个ip限制需要用“|”进行连接,用,或者[]都不行

你可能感兴趣的:(后端)