2018年7月9日

spring中注解配置

摘要: 1.使用注解配置spring: 步骤: a.为主配置文件引入心得命名空间(约束) \spring-framework-4.2.4.RELEASE-dist\spring-framework-4.2.4.RELEASE\schema\context b.开启使用注解代理配置文件。 c.在类中使用注解, 阅读全文

posted @ 2018-07-09 21:33 Terlong 阅读(196) 评论(0) 推荐(0)

对集合中的数据进行相关排序(comparable接口)

摘要: 实现方式一: 将需要排序的类去实现Comparable<>接口 //student.java //Test1.java 实现方式二: 通过实现Comparator的匿名内部类类对对象进行相关的排序 //students.java //Test2.java 阅读全文

posted @ 2018-07-09 15:30 Terlong 阅读(144) 评论(0) 推荐(0)

导航