说到这个有些东西后边我们学过后回头看就很清晰的事儿不禁让我想到了乔布斯在斯坦福大学的演讲,摆一下原文:
“You can't connect the dots looking forward; you can only connect them looking backwards. So you have to trust that the dots will somehow connect in your future.You have to trust in something - your gut, destiny, life, karma, whatever. This approach has never let me down, and it has made all the difference in my life.”
上边这段话纯属心血来潮写的,大意是坚持做自己喜欢的事儿,你在做的时候可能并不能搞清楚这些事儿对自己之后的人生有啥影响,但当你一路走来回头看时,一切都是那么清晰,就像是命中注定的一样。上述内容跟MySQL毫无干系,请忽略~
最近学mybatis框架,映射器mapper好复杂啊,不过文档讲的挺好的,遇到一些级联等概念,赶紧恶补了一波mysql必知必会,真有意思啊,我差不多会连结了
今天跟学长还有树杭讨论了 c++ web服务器和 tomcat 的区别关系,以及如何让 我写的java程序跑 他们写的c++ web服务器 最后看tomcat 与 nginx,apache的区别是什么? - David的回答 - 知乎总算明白了
面向log编程的一天
一下午学到了一个小技巧
public class AAA{
public String getFileName() {
System.out.println();
return new File("").getAbsolutePath() + "/"
+ this.getClass().getSimpleName() + ".java";
}
}
这样可以获得当前文件的绝对路径
例如
/home/ajian/xxx/AAA.java