首页 新闻 论坛 群组 Blog 文档 下载 读书 Tag 网摘 搜索 .NET Java 游戏 视频 人才 外包 第二书店 程序员
您的位置:Java->基于组件化的监控平台开发监控

基于组件化的监控平台开发监控2008-04-22 来自:villa123  [收藏到我的网摘]

前一阵开发这个基于组件化的监控平台收到的一些朋友的关注,在此表示感谢。也抱歉有一段时间没有及时更新了。
此次更新,主要是针对xml配置文件的简化,很多朋友表示Spring的xml的配置比较麻烦。其实Spring开发团队在这方面也是有考虑到的,
提供了一些方法可以让用户去编写xsd文件简单配置。这点我们是可以看到Spring开发团队的努力,现在Spring2.0以及2.5在配置上面也是
简化了很多如事务的配置,Aop配置以及utils工具类的配置等。
源代码下载:
二进制程序
第三方类库下载,第三方类库下载2 放到lib目录下。
api-docs
源代码

关于想学习或使用过关于如何实现Spring的配置的朋友们,可以留言给我,一起进行交流学习。这部分的学习文档也是整理得不够。

言归正转,下面我们先来看一下原来的配置文档,基于普通的Spring 2.0 beans schema 1
2 3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4 xmlns:aop="http://www.springframework.org/schema/aop"
5 xmlns:tx="http://www.springframework.org/schema/tx"
6 xmlns:util="http://www.springframework.org/schema/util"
7 xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
8 http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.0.xsd
9 http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.0.xsd
10 http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.0.xsd">
11
12
13
14

15
16
17
18
19
20
21

22

23

24
25
26
27
28 TomcatJmxSpyComponent
29

30

31
32
33
34 EmailAlertComponent
35

36

37

38
39
40
41
42
43
44
45
46
47
48
49

50

51
52
53
54
55

56

57
58

59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76

77

78
79
80
81
82

83

84
85
86
87
88
89
90
91
92

93

94
95
96
97
98
99
100
101
102
103
104
105

106

107

108

109

110
111
112
113
114
115 /
116 /jsp-examples
117 /servlets-examples
118

119

120

121

122

123
124
125
126
127
128
129
130
131
132
133
134
135

136

137

138
139
140 ant_miracle@163.com
141

142
143
163

164
是感觉很麻烦,下面我们看一下简化后的配置文档,功能与上面对应。
需要注意的是,现在我们使用的bean schema是xmlns="http://www.xmatthew.org/spy2servers/schema"

1
2 3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4 xmlns:beans="http://www.springframework.org/schema/beans"
5 xmlns:context="http://www.springframework.org/schema/context"
6 xmlns:util="http://www.springframework.org/schema/util"
7 xsi:schemaLocation="http://www.springframework.org/schema/beans
8 http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
9 http://www.xmatthew.org/spy2servers/schema
10 http://www.xmatthew.org/spy2servers/schema/spy2servers-1.0.xsd
11 http://www.springframework.org/schema/context
12 http://www.springframework.org/schema/context/spring-context-2.0.xsd">
13
14
15
16
17
18
19
20
21
22

23
28

29

30
31
32
33
34
35
36
37
38
39
40
41
42

43
44
45
46

47

48
49
50
51
52

53
54
55
56

57

58
59
60
61
62

63 64 loginPwd="xxxx" sender="ant_miracle@163.com" sendNick="EmailAlertComponent"/>
65

66
67
68

69
是不是简化的很多吧,配置起来也不这么麻烦了。

最后欢迎大家如果有问题和意见,给我留言。

推荐人评论

提供了一些方法可以让用户去编写xsd文件简单配置。这点我们是可以看到Spring开发团队的努力,现在Spring2.0以及2.5在配置上面也是简化了很多如事务的配置

用户评论

正在载入评论列表...

是谁推荐了此篇文章

专家头像陈丽辉CSDN频道编辑,联系方式chenlh@csdn.net
个人blog发送信息
陈丽辉推荐的其他文章

赞助商精华文章

热点新闻

热点评论

    精彩视频

    精彩专题

    资源下载

    网站简介|广告服务|VIP资费标准|银行汇款帐号|网站地图|帮助|联系方式|诚聘英才|English|版权声明|问题报告

    北京创新乐知广告有限公司 版权所有, 京 ICP 证 070598 号

    世纪乐知(北京)网络技术有限公司 提供技术支持

    Copyright ? 2000-2008, CSDN.NET, All Rights Reserved

    GongshangLogo