本篇是笔者之前学习 Spring 时为了复习方便所做的笔记,现在整理后与大家分享。 内容包括 在 Eclipse 中搭建 Spring 的开发环境、Spring 的 IOC、Spring 的依赖注入、Spring 整合 Web、IOC 注解、Spring 的 AOP 详解、Spring 的 JDBC... ...
分类:
编程语言 时间:
2017-10-18 13:19:31
阅读次数:
186
单一职责原则(SRP:The Single Responsibility Principle) 一个类应该有且只有一个变化的原因。 There should never be more than one reason for a class to change. 为什么将不同的职责分离到单独的类中是 ...
分类:
其他好文 时间:
2017-10-18 00:12:09
阅读次数:
207
并发包中引入了线程池,好处是: 可以制定灵活的运行策略,比如single的,保证一个一个运行,fixed的可以保证一次只运行一定数量的线程 线程池可以将线程关闭 线程池可以使线程之间进行通讯 锁的好处是: 有公平锁,可以实现先来的线程,先执行 通过lock(reentrantelock)和condi ...
分类:
其他好文 时间:
2017-10-18 00:11:02
阅读次数:
208
Unable to find a single main class from the following candidates [*.*Application] ...
分类:
编程语言 时间:
2017-10-17 15:37:16
阅读次数:
315
作业。。。还是多做事,少想。。与其想一些遥不可及的事情,不如把脚下的事情做好。。。 应该分几个文件好好写的。。。习惯真差。。。 DDA,Bresenham,Scanline,按照中心平移,旋转,放大缩小,变化窗口大小。。。 ubuntu 下要装freeglut。。。 #ifdef WIN32#inc ...
分类:
其他好文 时间:
2017-10-17 12:22:50
阅读次数:
137
There are several ancient Greek texts that contain descriptions of the fabled island Atlantis. Some of these texts even include maps of parts of the i ...
分类:
其他好文 时间:
2017-10-16 23:32:47
阅读次数:
265
redis作为一个高速数据库,在互联网上,必须有对应的安全机制来进行保护,方法有2,如下。 1.比较安全的办法是采用绑定IP的方式来进行控制。 请在redis.conf文件找到如下配置 # If you want you can bind a single interface, if the bin ...
分类:
其他好文 时间:
2017-10-16 16:42:40
阅读次数:
164
Scout YYF I YYF is a couragous scout. Now he is on a dangerous mission which is to penetrate into the enemy's base. After overcoming a series difficul ...
分类:
其他好文 时间:
2017-10-15 21:07:08
阅读次数:
206
You are given n strings s1,?s2,?...,?sn consisting of characters 0 and 1. m operations are performed, on each of them you concatenate two existing str ...
分类:
其他好文 时间:
2017-10-15 17:46:05
阅读次数:
276