Bean 之间的关系:继承、依赖。 Bean 继承: Spring 允许继承 bean 的配置 , 被继承的 bean 称为父 bean , 继承这个父 bean 的 bean 称为子 bean。 子 bean 从父 bean 中继承配置 , 包括 bean 的属性配置。 子 bean 也可以覆盖从 ...
分类:
编程语言 时间:
2017-03-01 22:50:02
阅读次数:
288
Period http://poj.org/problem?id=1961 Time Limit: 3000MS Memory Limit: 30000K Description For each prefix of a given string S with N characters (each ...
分类:
其他好文 时间:
2017-03-01 20:39:08
阅读次数:
175
A binary tree is a finite set of vertices that is either empty or consists of a root r and two disjoint binary trees called the left and right subtree ...
分类:
其他好文 时间:
2017-03-01 00:27:12
阅读次数:
233
View命名 View下有多个模块的文件夹,我们根据微软的规定,每个模块下的首页都为Index.cshtml命名 获得当前页面的控制器名称 var currentControllerName = this.ViewContext.RouteData.Values["controller"].ToSt ...
分类:
Web程序 时间:
2017-02-27 16:47:58
阅读次数:
341
在学习MySQL的过程中,常常会测试各种参数的作用。这时候,就需要快速构建出MySQL实例,甚至主从。 考虑如下场景: 譬如我想测试mysqldump在指定--single-transaction参数的情况下,对于myisam表的影响。 本来想在现成的测试环境中进行,但测试环境中,有大量的数据,执行 ...
分类:
数据库 时间:
2017-02-26 13:59:55
阅读次数:
246
Given an array of integers, every element appears twice except for one. Find that single one. Note:Your algorithm should have a linear runtime complex ...
分类:
其他好文 时间:
2017-02-25 21:16:46
阅读次数:
203
源代码保护:怎样利用MaxtoCode加密dotNet源代码 http://www.webkaka.com/blog/archives/MaxtoCode-encrypt-dotnet-program.html MaxtoCode基本上下载下来都不能用,是个垃圾啊 net reactor加密源码保软 ...
sql server中如何判断表或者数据库的存在,但在实际使用中,需判断Status状态位:其中某些状态位可由用户使用 sp_dboption(read only、dbo use only、single user 等)进行设置: 1 = autoclose;使用 sp_dboption 设置。 数据 ...
分类:
数据库 时间:
2017-02-25 01:11:14
阅读次数:
256
本文将从理论的角度去介绍分布式缓存,在构建大规模的web应用时,缓存技术可以说是必备的,学习的必要性不言而喻。分布式缓存概述1.1分布式缓存的特性分布式缓存具有如下特性:1)高性能:当传统数据库面临大规模数据访问时,磁盘I/O往往成为性能瓶颈,从而导致过高的响应延迟.分布..
分类:
其他好文 时间:
2017-02-24 12:44:58
阅读次数:
157
1 模式动机 在软件系统中,时常会有一些对象只能存在一个,而且需要在全局共享使用。如果不同地方调用的对象不同,那么很可能操作的数据或界面就会混乱,造成严重的影响。 2 模式定义 单例模式(Singleton Pattern): 确保一个类只有一个实例,自行提供这个实例并向整个系统提供这个实例。 3 ...
分类:
其他好文 时间:
2017-02-23 13:14:14
阅读次数:
176