摘要: 本文继续最基本案例,使用了mapper接口的注解定义方式。转载注明出处:http://www.cnblogs.com/wdfwolf3/p/6797133.html,谢谢。文件目录如下, 1.配置文件mybatisconfig.xml如下,标红一行和常见设置不同,用来去除警告:Loading cla 阅读全文
posted @ 2017-05-02 17:17 wdfwolf3 阅读(928) 评论(0) 推荐(0) 编辑
摘要: 转载注明出处:http://www.cnblogs.com/wdfwolf3/p/6796773.html,谢谢。 最近面试被问到mybatis,发现学的很皮毛,因此重新学习一遍,记录一下过程中的问题及解决方法。 这次学习没有整合spring。本篇为最基本的mybatis配置和案例,使用XML定义语 阅读全文
posted @ 2017-05-02 16:34 wdfwolf3 阅读(388) 评论(0) 推荐(0) 编辑
摘要: 这里也可以将flow的配置单独建一个文件,然后在application-context中<import resource="flow配置文件" />。 由于本文讲的是配置,所以不讲解webflow的使用。举个简单的例子,主要说明一下view的映射,当访问/url请求时,如果DispatcherSer 阅读全文
posted @ 2017-03-15 12:18 wdfwolf3 阅读(1480) 评论(3) 推荐(0) 编辑
摘要: 个人博客地址:http://www.cnblogs.com/wdfwolf3/ java.net.ServerSocket 1.构造函数 a.ServerSocket() 创建一个无连接的server socket。 b.ServerSocket(int port) 绑定到port端口上 c.Ser 阅读全文
posted @ 2016-09-20 20:33 wdfwolf3 阅读(2015) 评论(0) 推荐(0) 编辑
摘要: Given an array of size n, find the majority element. The majority element is the element that appears more than ⌊ n/2 ⌋ times. You may assume that the 阅读全文
posted @ 2016-05-13 19:44 wdfwolf3 阅读(512) 评论(0) 推荐(0) 编辑
摘要: Given an integer (signed 32 bits), write a function to check whether it is a power of 4. Example:Given num = 16, return true. Given num = 5, return fa 阅读全文
posted @ 2016-05-12 12:49 wdfwolf3 阅读(396) 评论(0) 推荐(0) 编辑
摘要: Write a function that takes a string as input and reverse only the vowels of a string. Example 1:Given s = "hello", return "holle". Example 2:Given s 阅读全文
posted @ 2016-05-12 12:25 wdfwolf3 阅读(811) 评论(0) 推荐(0) 编辑
摘要: Write a function that takes a string as input and returns the string reversed. Example:Given s = "hello", return "olleh". 个人博客:http://www.cnblogs.com/ 阅读全文
posted @ 2016-05-12 10:24 wdfwolf3 阅读(1787) 评论(0) 推荐(0) 编辑
摘要: 个人博客地址:http://www.cnblogs.com/wdfwolf3/ update-alternatives是ubuntu系统用来进行软件版本切换的命令。比如系统中有几个版本的jdk,把这些命令所在的目录作为链接统一的映射到一个系统目录下,然后可以通过update-alternatives 阅读全文
posted @ 2016-05-09 14:56 wdfwolf3 阅读(1323) 评论(0) 推荐(0) 编辑
摘要: 这个安装比较简单,网上也有数不清的教学,我这里记录以下,方便以后万一失忆了回来看看能想起来。个人博客http://www.cnblogs.com/wdfwolf3/ 1.下载安装 言归正传,我们需要到官方下载安装包(http://www.oracle.com/technetwork/java/jav 阅读全文
posted @ 2016-05-08 22:36 wdfwolf3 阅读(924) 评论(0) 推荐(0) 编辑