12 2012 档案
摘要:在项目对应的容器里tomcat-users.xml文件当中添加角色及用户: <role rolename="admin"/> <user username="zhangsan" password="123" roles="admin"/> 对应的web.xml中配置如下: <security-constraint> <web-resource-collection> <web-resource-name>my auth</web-resource-n
阅读全文
摘要:public class Test { public static void main (String[] args) { excuteCommand("ipconfig"); // excuteCommand("ping 10.141.26.50"); } public static void excuteCommand(String command) { Runtime r = Runtime.getRuntime(); Process p; ...
阅读全文

浙公网安备 33010602011771号