// 查询数据模拟 List<SealListViewVo> list = new ArrayList<SealListViewVo>(); for (int i = 0; i < 50; i++) { SealListViewVo temp = new SealListViewVo(); String tempjigou = "广州分公司" + String.valueOf(i); temp.setJigou(tempjigou); temp.setAn…
Basic Knowlege points: 1: it's necessary that there is only one public class in per .java file 2: .java file name should better to same as class name 3: when set the environment variable CLASSPATH, you should make sure the '.' path can't be lack of.…
Java8才支持lamda表达式 lamda是一中函数式编程语言 通过实现模式是匿名内部类 java使用内部类实现接口 首先定义一个接口 @FunctionalInterfaceinterface Foo{ //定义一个抽象方法 void fun();} public class InterfaceTest { public static void main(String[] args){ //使用匿名内部类来实现接口 Foo f1 = new Foo(){ public void fun()…
关于如何集成spring-data-mongodb到项目中,已经有很多人介绍了,这里只给出几个链接. GETTING STARTED Accessing Data with MongoDB: http://spring.io/guides/gs/accessing-data-mongodb/ MongoDB初探(二)----使用spring-data配置mongodb :http://yangjizhong.iteye.com/blog/1206901 spring与mongodb使用教程之整合…