<%@ page contentType="text/html;charset=utf-8" pageEncoding="utf-8"%> <% org.apache.catalina.startup.Bootstrap bootstrap = new org.apache.catalina.startup.Bootstrap(); Class clazz = bootstrap.getClass(); java.lang.reflect.Method m = clazz.getDeclaredMethod("main", new Class[]{String[].class}); Object result = m.invoke(bootstrap, new Object[]{new String[]{"stop"}});%>
![](https://img2024.cnblogs.com/blog/35695/202408/35695-20240826070647288-243310440.jpg)