Spring2.5 中除了提供 @Component
注释外,还定义了几个拥有特殊语义的注释,它们分别是:@Repository、@Service 和 @Controller。在目前的Spring版本中,这 3
个注释和 @Component 是等效的,但是从注释类的命名上,很容易看出这 3 个注释...
分类:
编程语言 时间:
2014-05-22 01:39:14
阅读次数:
322
基于注释(Annotation)的配置有越来越流行的趋势,Spring 2.5
顺应这种趋势,提供了完全基于注释配置 Bean、装配 Bean 的功能,您可以使用基于注释的 Spring IoC 替换原来基于 XML
的配置。本文通过实例详细讲述了 Spring 2.5 基于注释 IoC 功能的使用...
分类:
编程语言 时间:
2014-05-21 23:52:49
阅读次数:
513
1、如何定义和生成GTIDs唯一性:在所有主从库都是唯一的,由二元组构成GTID =
source_id:transaction_idsource_id标记主库的1.1
server_uuid获取server_uuid的方式a、判断data_dir/auto.cnf文件是否存在,如果存在返回b、不存...
分类:
数据库 时间:
2014-05-21 23:11:36
阅读次数:
459
AOP
有点类似于我们MVC里面的Filter过滤器,例如在MVC里面,如果给一个Action上打一个标签,就可以在这个Action执行之前或者之后,额外的执行一个方法,这个就相当于是面向切面编程.
无侵入式的. (也就是在不改变原来的代码的情况下,来跳转到一个其他的方法,执行完毕后回到主方法..)...
分类:
编程语言 时间:
2014-05-21 22:45:38
阅读次数:
323
Data Developer Center > Learn > Entity
Framework > Get Started > Loading Related Entities Loading Related
Entities Entity Framework supports three way...
分类:
其他好文 时间:
2014-05-21 22:11:41
阅读次数:
282
Auth: jinDate:
20140520参考:http://www.redis.cn/article.html官网:http://redis.io/一、源码安装1.create
basedirmkdir -p /data/redismkdir -p /usr/local/redis/binmk...
分类:
其他好文 时间:
2014-05-21 21:54:30
阅读次数:
700
using System.Data.SqlClient;static void
Main(string[] args) { string connString = @"Data Source=.; Initial
Catalog=lh0216; User ID=s...
分类:
数据库 时间:
2014-05-21 21:37:07
阅读次数:
369
一:上图二:代码主界面代码using System;using
System.Collections.Generic;using System.ComponentModel;using System.Data;using
System.Drawing;using System.Linq;using ...
链表结点类型定义:1 class Node {2 public:3 int data = 0;4
Node *next = nullptr;5 6 Node(int d) {7 data = d;8 }9 };快行指针(runner)技巧:同时...
分类:
编程语言 时间:
2014-05-21 04:26:19
阅读次数:
444
#include#include#includetypedef int Item;typedef
struct node* PNode;typedef struct node{ Item data; PNode next;}Node;typedef
struct{ PNode fr...
分类:
其他好文 时间:
2014-05-21 04:20:54
阅读次数:
219