08 2022 档案

摘要:String hex = "EC78";Short val = (short)Integer.parseInt(hex,16); 阅读全文
posted @ 2022-08-25 16:56 蜜铀 阅读(99) 评论(0) 推荐(0)
摘要:查看某个IP是否可达 InetAddress address1 = InetAddress.getByName("192.168.1.158"); if (address1.isReachable(1000)) { System.out.println("reachable"); } 也可以获取网卡 阅读全文
posted @ 2022-08-25 11:25 蜜铀 阅读(222) 评论(0) 推荐(0)
摘要:int a = 255;byte b = (byte) a; // 结果 b 的值为 -1;int c = b; // 结果 c 的值为 -1;int d = Byte.toUnsignedInt(b); // 用该方法可以还原为255 解释: 由于byte是有符号的,而255 的二进制值为 111 阅读全文
posted @ 2022-08-22 15:01 蜜铀 阅读(241) 评论(0) 推荐(1)
摘要:主要使用 xmlns:d="http://schemas.microsoft.com/expression/blend/2008" mc:Ignorable="d" xmlns:vm ="clr-namespace:MyApp.ViewModel" d:DataContext="{d:DesignI 阅读全文
posted @ 2022-08-20 21:51 蜜铀 阅读(48) 评论(0) 推荐(0)
摘要:修改文件:Tomcat 8.5\conf\server.xml,在<host>里加入代码 docBase:本地文件路径(注意斜杠方向) path网页路径(值:/a 对应: http://localhost:8080/a/) <Context path="/a" docBase="G:\webapp" 阅读全文
posted @ 2022-08-17 12:24 蜜铀 阅读(127) 评论(0) 推荐(0)
摘要:有时候开发的窗口或控件,在运行的时候再绑定的,可以通过 d:DataContext 来绑定设计时数据。 <Window xmlns:data ="clr-namespace:WPFDemo.Model" d:DataContext="{d:DesignInstance data:DataModel 阅读全文
posted @ 2022-08-04 09:40 蜜铀 阅读(139) 评论(0) 推荐(0)