关联关系可以理解为“HAS-A”关系,即“有”的关系。 例如: 学校里有学生,可以说学校关联学生。 用java类的方式描述: School类中有Student类型的属性存在。如果实例化School,就会为之实例化一个Student的对象。 单向的关联就是简单的你中有我。 双向的关联就是互相有对方。 ...
分类:
其他好文 时间:
2016-04-30 15:32:34
阅读次数:
120
通过工厂方法配置bean 通过指向静态工厂的全类名,及factory-method,传入参数获取bean。 配置为: 新增静态工厂类: 新增 bean:school 测试代码: 输出为:School [schoolName=武大, address=武汉东湖之滨] 实例工厂方法 有别与静态工厂方法,想 ...
分类:
编程语言 时间:
2016-04-28 00:11:10
阅读次数:
242
我们添加对象的形式是介样滴。。。 School falseSchool = new School("请选择……"); jCB_searchschool.addItem(falseSchool); jCB_userschoolMdf.addItem(falseSchool); 如果让它显示falseS ...
分类:
其他好文 时间:
2016-04-26 00:21:57
阅读次数:
1098
这一章节我们来讨论一下守护线程。1.特性守护线程是需要等待其他用户线程结束后才结束的线程,俗称保姆线程2.源码解析/**
* Marks this thread as either a {@linkplain #isDaemon daemon} thread
* or a user thread. The Java Virtual Machine exits when the ...
分类:
编程语言 时间:
2016-04-22 20:19:41
阅读次数:
181
Problem Description
Are you excited when you see the title “AC” ? If the answer is YES , AC it ;
You must learn these two combination formulas in the school . If you have forgotten it , see the pictu...
分类:
其他好文 时间:
2016-04-19 19:56:58
阅读次数:
180
Changes after coming to graduate school(1) w7d2 Hello,everyone, this is Jack from Shanghai, how's everything going?I haven't uploaded new articles for ...
分类:
其他好文 时间:
2016-04-18 22:14:33
阅读次数:
121
数据库设计: Model School.cs ViewModel SchoolDto.cs AddSchoolViewModel.cs EditSchoolViewModel.cs BLL ISchoolService.cs SchoolService.cs WebApi AutoMapper-> ...
分类:
其他好文 时间:
2016-04-14 15:55:09
阅读次数:
165
题目链接: Computer Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Problem Description A school bought the first computer ...
分类:
其他好文 时间:
2016-04-11 22:26:19
阅读次数:
217
A. Kyoya and Photobooks Kyoya Ootori is selling photobooks of the Ouran High School Host Club. He has 26 photos, labeled "a" to "z", and he has compil ...
分类:
其他好文 时间:
2016-04-09 16:48:32
阅读次数:
118
There is an assumption in the world that an essay is something literary you write for school about a topic that no one but your teacher will ever care ...
分类:
其他好文 时间:
2016-04-09 15:18:22
阅读次数:
262