摘要:
主要使用 xmlns:d="http://schemas.microsoft.com/expression/blend/2008" mc:Ignorable="d" xmlns:vm ="clr-namespace:MyApp.ViewModel" d:DataContext="{d:DesignI 阅读全文
摘要:
修改文件:Tomcat 8.5\conf\server.xml,在<host>里加入代码 docBase:本地文件路径(注意斜杠方向) path网页路径(值:/a 对应: http://localhost:8080/a/) <Context path="/a" docBase="G:\webapp" 阅读全文
摘要:
有时候开发的窗口或控件,在运行的时候再绑定的,可以通过 d:DataContext 来绑定设计时数据。 <Window xmlns:data ="clr-namespace:WPFDemo.Model" d:DataContext="{d:DesignInstance data:DataModel 阅读全文
摘要:
代码: public static String readLine() throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); return br.readLine( 阅读全文
摘要:
最近C盘告急,存储不够用了。决定将MySQL迁移到D盘去; 第一步,停止MySQL服务 首先打开“任务管理器”停止MySQL服务; 第二步,移动文件 我的原文件地址:C:\mysql-5.6.24-win32 新的文件地址:D:\mysql-5.6.24-win32 第三步,修改注册表MySQL服务 阅读全文
摘要:
解决办法:相关的wait及notify需要在synchronized修饰的方法下执行 Object object = new Object(); new Thread(() -> { for (int i = 0; i < 10; i++) { try { synchronized (object) 阅读全文
摘要:
今天发现pod 没有ready,STATUS是:CrashLoopBackOff 通过:kubectl describe pod实例名称 未发现异常 通过:kubectl logs -f 实例名称 发现报错: chown: changing ownership of '/var/lib/mysql/ 阅读全文
摘要:
Stram流拼接 Stream<Integer> limit1 = Stream.of(1,1,1); Stream<Integer> limit2 = Stream.of(2,2,2); Stream<Integer> concat = Stream.concat(limit1, limit2); 阅读全文
摘要:
int转十六进制字符串方法一:String.formatSystem.out.println(String.format("%02X ",10));方法二:Integer.toHexStringSystem.out.println(Integer.toHexString(10)); 输出: 0A a 阅读全文
摘要:
在Android开发过程中,在请求过程中经常药异步调用,如果异步请求过多,会有很多代码冗余。 然后想到了做个通用的方法,将多行代码改成单行来执行,开发的时候,只要考虑实现相关方法即可。 这里提供一个通用的异步执行类; /** * 异步方法执行器 */ public class SyncFunctio 阅读全文