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 阅读全文
posted @ 2012-12-23 21:12 木森2015 阅读(383) 评论(0) 推荐(0)
摘要: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; ... 阅读全文
posted @ 2012-12-10 21:16 木森2015 阅读(454) 评论(0) 推荐(0)