在xml配置了这个标签后,spring可以自动去扫描base-pack下面或者子包下面的java文件,如果扫描到有@Component @Controller@Service等这些注解的类,则把这些类注册为bean注意:如果配置了那 么标签就可以不用再xml中配置了,因为前者包含了后者。另 外还提....
分类:
编程语言 时间:
2015-03-18 19:59:59
阅读次数:
148
在xml配置了这个标签后,spring可以自动去扫描base-pack下面或者子包下面的java文件,如果扫描到有@Component @Controller @Service等这些注解的类,则把这些类注册为bean 注意:如果配置了<context:component-sc...
分类:
其他好文 时间:
2015-03-18 16:11:38
阅读次数:
137
III is a kind of I. But it require 2 maximum value. So scan from begin and scan from end to record the maximum value for currrent index.Then scan the ...
分类:
其他好文 时间:
2015-03-18 07:46:13
阅读次数:
134
遇到卡时间比较死的题目的时候可以用
#include
#include
#include
#include
#include
using namespace std;
//适用于正负整形数
template
inline bool scan_d(T &ret)
{
char c; int sgn;
if (c = getchar(), c == EOF) return 0...
分类:
其他好文 时间:
2015-03-15 23:05:30
阅读次数:
166
水题。给出一个数列,求第k个值为v的数字的位置。熟练使用STL还是很有必要的,尤其是CF的Div用map用得挺多的。 1 #include 2 #include 3 #include 4 using namespace std; 5 6 void scan(int& x) 7 { 8 ...
分类:
其他好文 时间:
2015-03-15 18:07:35
阅读次数:
107
做道水题凑凑题量,=_=||。直接用STL里的queue、stack 和 priority_queue模拟就好了,看看取出的元素是否和输入中的相等,注意在此之前要判断一下是否非空。 1 #include 2 using namespace std; 3 4 void scan( int &x ).....
分类:
其他好文 时间:
2015-03-15 16:46:00
阅读次数:
122
实验场景:有两台xenserver正在运行,其中一台xenserver运行这一台虚拟机centos6.0,需要通过NFS服务器实现Xenmotion动态迁移到另一台xenserver上去。用一台Linux搭建NFS[root@localhost~]#echo"---">>/sys/class/scsi_host/host2/scan#从新扫描硬件
[root@localhost~]#c..
分类:
其他好文 时间:
2015-03-15 07:08:24
阅读次数:
166
CBO之Full Table Scan - FTS算法...
分类:
编程语言 时间:
2015-03-14 20:05:55
阅读次数:
167
转载请注明出处:*********************************************** 二、CBO之B*Tree Index Range Scan - IRS算法***********************************************1、在表gyj_t1建索引SQL> create index idx_gyj_t1_id on gyj_t1(id);I...
分类:
编程语言 时间:
2015-03-14 20:04:53
阅读次数:
193
在使用zxing开源库的时候,发现比较大的图片无法扫描成功,报如下异常: com.google.zxing.NotFoundException 通过scale down Bitmap可以解决上述问题,720是一个Magic number,可以根据自己的项目调整 // Scale...
分类:
其他好文 时间:
2015-03-13 14:42:53
阅读次数:
155