- 高级编程--XML+socket练习题
masa010
java开发语言
1.北京华北2114.8万人上海华东2,500万人广州华南1292.68万人成都华西1417万人(1)使用dom4j将信息存入xml中(2)读取信息,并打印控制台(3)添加一个city节点与子节点(4)使用socketTCP协议编写服务端与客户端,客户端输入城市ID,服务器响应相应城市信息(5)使用socketTCP协议编写服务端与客户端,客户端要求用户输入city对象,服务端接收并使用dom4j
- JavaScript 中 xml 的解析(dom4j 解析器),web前端开发规范手册
2401_84094868
程序员前端javascriptxml
创建元素:Elementschool=DocumentHelper.createElement(“school”);创建文本:school.addText(“光明小学”);指定位置添加:list.add(1,school);回写xml:和在末尾添加一样7、获取属性值attributeValue():获取属性值publicstaticvoidmain(String[]args)throwsDocum
- xml与java对象转换
iteye_10822
xmlxml
xml的解析技术包括了很多,其中dom4j,jdom,SAX等技术估计已经在大部分的人心中成为了耳熟能详的东西,但是如果是关于xml与对象直接的转换技术,那么下面几种技术是不错的选择。A.commons-digesterDigester本来仅仅是JakartaStruts中的一个工具,用于处理struts-config.xml配置文件。显然,将XML文件转换成相应的Java对象是一项很通用的功能,
- JAVA XML转JSON工具类
张志飞
xmljson
packagecom.cm.util.xmlutl;importcom.alibaba.fastjson.JSONArray;importcom.alibaba.fastjson.JSONObject;importorg.apache.log4j.Logger;importorg.dom4j.*;importjava.io.File;importjava.io.FileInputStream;im
- Java Xml 工具类
Jokes-T
javaxml
importorg.apache.commons.lang3.StringUtils;importorg.dom4j.Document;importorg.dom4j.DocumentException;importorg.dom4j.DocumentHelper;importorg.dom4j.Element;importjavax.xml.bind.JAXBContext;importjava
- 基于Spring的三方平台接口对接方法(OkHttp/RestTemplate/视图)
星月梦瑾
javajavaspringokhttprestful
本文介绍了三方平台接口对接方法,一是基于OkHttp请求工具及dom4j报文封装解析xml的方法,二是采用RestTemplate方法封装请求,三是采用建立视图和从库数据源的方式查询。一、OkHttp请求工具及dom4j报文封装解析1、依赖引入 com.squareup.okhttp3 okhttp 4.9.3 compile org.dom4j dom4j
- 将Xml转为Map集合工具类
Fairy要carry
工具xmljavapython
packagecom.wyh.wx.utils;importorg.dom4j.Document;importorg.dom4j.Element;importorg.dom4j.io.SAXReader;importjava.io.ByteArrayInputStream;importjava.io.InputStream;importjava.nio.charset.StandardCharse
- Javaweb基础-tomcat,servlet
tmy99
javaservlet开发语言
一.配置文件基础:properties配置文件:由键值对组成键和值之间的符号是等号每一行都必须顶格写,前面不能有空格之类的其他符号xml配置文件:(xml语法=HTML语法+HTML约束)xml约束-DTD/SchemaDOM4J进行XML解析:(jar包dom4j.jar)1.创建SAXReader对象SAXReadersaxReader=newSAXReader();2.解析XML获取Docu
- Dom4j的使用
A_一只小菜鸟
dom4j是一个Java的XMLAPI,是jdom的升级品,用来读写XML文件的。dom4j是一个十分优秀的javaXMLAPI,具有性能优异、功能强大和极其易使用的特点,它的性能超过sun公司官方的dom技术,同时它也是一个开放源代码的软件,可以在SourceForge上找到它。一、dom4j介绍使用方式:在pom.xml中导入dom4j对应的jardom4jdom4j1.6.1优点:dom4j
- XML 教程【一文彻底搞懂dom4j解析】
~ 小团子
JavaWebxml学习java
文章目录1.xml入门1.1xml新建1.1文档声明1.2元素1.3属性1.4CDATA节1.5转义字符1.6格式正确的XMLDOM4JDOM4J介绍Dom4j应用实例2.2遍历xml指定元素2.3读取指定xml元素2.4获取属性2.5dom4j增删改2.6作业1.xml入门1.1xml新建1.1文档声明XML声明放在XML文档的第一行XML声明由以下几个部分组成:version=“1.0”文档符
- xml简单操作
industry2018
xml
1.获得根目录标签下直接子标签内容:packagecom.xxx;importjava.io.FileInputStream;importjava.io.IOException;importjava.io.InputStream;importjava.util.Iterator;importorg.dom4j.Document;importorg.dom4j.DocumentException;i
- BUUCTF-Real-[PHP]XXE
真的学不了一点。。。
漏洞复现与研究网络安全
目录1、原理2、XXE漏洞产生的原因3、开始复现paylaod复现4、flag1、原理XML数据在传输过程中,攻击者强制XML解析器去访问攻击者指定的资源内容(本地/远程),外部实体声明关键字'SYSTEM'会令XML解析器读取数据,并允许它在XML文档中被替换,构造恶意的值,去执行!XML解析方式:DOM,SAX,JDOM,DOM4J,StAX……都可能会出现外部实体注入漏洞2、XXE漏洞产生的
- xml文件解析
Slow菜鸟
xmlpython前端
xml文件解析XML解析——Java中XML的四种解析方式一、DOM解析二、SAX解析三、JDOM解析四、DOM4J解析Final:比较总结转载:https://www.cnblogs.com/mountainstudy/p/17954434XML解析——Java中XML的四种解析方式XML是一种通用的数据交换格式,它的平台无关性、语言无关性、系统无关性、给数据集成与交互带来了极大的方便。XML在
- XMLdom入门案例
卓昂芭比
importjava.io.File;importjava.util.List;importorg.dom4j.Document;importorg.dom4j.DocumentException;importorg.dom4j.Element;importorg.dom4j.io.SAXReader;publicclassXml_Demo1{publicstaticvoidmain(String
- Java实现关注微信公众号和自动回复消息
weixin_43652507
公众号微信java
依赖:dom4jdom4j1.6.1com.thoughtworks.xstreamxstream1.4.11.1关注公众号和自动回复,共两个接口,一个get,一个post,两个接口的url一样。WeChatControllerimportcom.ruoyi.ruoyiincome.wx.wechat.service.IWeChatService;importlombok.extern.slf4j
- Java基础进阶02-xml
辉图
笔记java笔记
目录一、XML(可拓展标记语言)1.学习网站:2.作用3.XML标签4.XML语法5.解析XML(1)常见解析思想DOM6.常见的解析工具7.DOM4j的使用8.文档约束(1)概述(2)分类(3)DTD约束(4)引入DTD约束(5)DTD语法①定义元素②定义属性(6)schema约束①定义元素②定义属性(7)引入schema约束(8)schema和DTD约束的区别一、XML(可拓展标记语言)1.学
- Spring Boot使用dom4j处理xml数据
落华X
springbootjavaspringbootxmlpython
一、引入org.dom4jdom4j2.1.4二、使用Documentdocument=DocumentHelper.createDocument();Elementdatainfo=DocumentHelper.createElement("ela");document.setRootElement(datainfo);Elementelb=datainfo.addElement("elb");
- 基于java处理ofd格式文件
小苗爸爸
技术xmldomjavazipstream
一、ofd格式介绍国家发布过一份关于ofd编码格式的资料,本来我想传上去的发现资源重复了,你们可以找找看,没有的话留个邮箱,我看到会发给你们的ofd本质上其实是一个压缩文件,咱们把他当做一个压缩包来处理就好了,思路是先解压,对解压后的文件进行解析处理,解压后是xml文件,java有很多处理xml的类,这里我推荐dom4j,原因是相对来说功能全、速度快,处理完后再进行压缩,保存为ofd格式即可ofd
- java中ofd文件转pdf_java ofd文件解析
weixin_39609650
java中ofd文件转pdf
packageofd;importjava.io.File;importjava.math.BigDecimal;importjava.util.List;importorg.dom4j.Attribute;importorg.dom4j.Document;importorg.dom4j.DocumentException;importorg.dom4j.Element;importorg.dom
- Java:特殊文件详细解释(包含Dom4j下载和使用)
DaveVV
javajavaeclipsespringmavenintellij-ideatomcatmybatis
特殊文件:属性文件、XML文件为什么要用这些特殊文件:方便存储多个用户的用户名密码等等。特殊文件主要学什么?1.了解特点作用2.学习使用程序读取它们里面的数据3.学习使用程序把数据存储到这些文件里特殊文件:1.属性文件(.properties):如果一个txt文件里存放的都是键值对数据,每个键值对占一行,也算是属性文件。Properties:1.是一个Map集合(键值对集合),但是我们一般不会当集
- Java工具类:将xml转为Json
天黑请闭眼
Java工具类JSONjavaxmljson
目录一、场景二、工具类三、测试类四、测试结果一、场景在对接第三方接口时,由于接口返回的并不是常见的Json,而是XML,所以需要将XML转为Json,方便后续处理二、工具类packagecom.xxx.util;importorg.apache.commons.lang.StringUtils;importorg.dom4j.Document;importorg.dom4j.Element;imp
- Java调用WebService接口,SOAP协议HTTP请求返回XML对象
cxzm_1024
WebServiceWebService
Java调用Webservice接口SOAP协议HTTP请求,解析返回的XML字符串:1.使用Java的HTTP库发送SOAP请求,并接收返回的响应。可以使用Java的HttpURLConnection、ApacheHttpClient等库。2.将返回的响应转换为字符串。3.解析XML字符串,可以使用Java的DOM解析器或者其他第三方库,如JDOM、DOM4J等。4.解析XML数据,提取需要的信
- Dom4j 根据指定的节点属性获取节点内容
莫扎特不唱摇篮曲
yoursqlhere1yoursqlhere2java代码片段如下:publicstaticStringget(Stringattr){Documentdoc=getXmlDocument();Elementroot=doc.getRootElement();Nodenode=root.selectSingleNode("sql[@name='"+attr+"']");//[@name='Rep
- XML格式目录解析——DOM,SAX,Dom4j方式
程序猿老王
开发工具androidxmljavadom
一、概况项目中要解析一个XML格式的目录,经过搜索了解到,解析方式主要有DOM,Pull,SAX三种方式,各自特点如下:SAXsax是一个用于处理xml事件驱动的“推”模型;优点:解析速度快,占用内存少,它需要哪些数据再加载和解析哪些内容。缺点:它不会记录标签的关系,而是需要应用程序自己处理,这样就会增加程序的负担。DOMdom是一种文档对象模型;优点:dom可以以一种独立于平台和语言的方式访问和
- XML数据如何进行解析呢,方式有哪些?
一纸油伞
问题:XML数据如何进行解析呢,方式有哪些?上回我们说到JSON解析的四种方式,那么这次我们来看看XML的四种解析方式。解析的四种方式DOM解析SAX解析JDOM解析DOM4J解析案例实操DOM解析DOM(DocumentObjectModel,文档对象模型),在应用程序中,基于DOM的XML分析器将一个XML文档转换成一个对象模型的集合(通常称为DOM树),应用程序正是通过对这个对象模型的操作,
- java解析json复杂数据的第三种思路
爱码少年
雕虫小技Javajavajson
文章目录一、概述二、数据预览1.接口json数据2.json转xml数据三、代码实现1.pom.xml2.核心代码3.运行结果四、源码传送一、概述接上篇java解析json复杂数据的两种思路我们已经通过解析返回json字符串得到数据,现在改变思路,按照如下流程获取数据:接口API获取JSONJSON转XMLdom4j使用XPath解析xml二、数据预览1.接口json数据https://blog.
- 第四章 XML
幸运小新
JavaWebxmljava前端
第四章XML1.什么是XML以及它的作用2.第一个XML示例文件3.XML语法介绍4.xml解析技术介绍5.使用dom4j读取xml文件得到document对象6.使用dom4j解析xml1.什么是XML以及它的作用2.第一个XML示例文件3.XML语法介绍第三条,是可以的下面有两个根元素,就会报错4.xml解析技术介绍5.使用dom4j读取xml文件得到document对象使用dom4j解析以下
- javaweb
wang_yun_xi
Day01.61.myeclipse的介绍...62.xml入门...73.xml乱码【★★★】...94.xml约束...95.xml约束--dtd【☆】...96.名字解释...127.xml约束--schema.128.解析技术...149.JAXP.14Day02.161.dom4j(domforjava)(day02)172.myeclipse介绍(day02)173.debug【★★★
- XML解析神器:Apache Commons Digester
宋小黑
ApacheCommons工具实战手册xmlapachejava
第1章:引言大家好,我是小黑。今天咱们聊聊一个在现代编程中经常遇到的话题:XML解析。你可能知道,XML(可扩展标记语言)因其灵活性和可读性,在配置文件、数据交换等方面广泛使用。但是,XML解析有时候会让人头疼,尤其是当文件结构复杂或者数据量巨大时。这时候,一个好用的工具就显得尤为重要了。在Java世界里,有很多工具可以用来解析XML,比如JAXP,JAXB,DOM4J等。但今天咱们要讨论的是Ap
- Java解析xml文档,判断对象是一个json是jsonArray还是jsonObject
家家小迷弟
workspringbootjavaxmljson
有一篇xml文档,如下:现在需要解析出其中的内容,首先需要明确的是,文档是由一个个的标签嵌套形成的,例如整个xml文件是由许多DescriptorRecord标签构成,xxxxxxxxxx现在需要解析出每个DescriptorRecord里面嵌套的xxxx各层级标签里面的内容,导入的依赖有:org.dom4jdom4j2.1.1com.alibabafastjson1.2.73解析代码如下:Fil
- Enum 枚举
120153216
enum枚举
原文地址:http://www.cnblogs.com/Kavlez/p/4268601.html Enumeration
于Java 1.5增加的enum type...enum type是由一组固定的常量组成的类型,比如四个季节、扑克花色。在出现enum type之前,通常用一组int常量表示枚举类型。比如这样:
public static final int APPLE_FUJI = 0
- Java8简明教程
bijian1013
javajdk1.8
Java 8已于2014年3月18日正式发布了,新版本带来了诸多改进,包括Lambda表达式、Streams、日期时间API等等。本文就带你领略Java 8的全新特性。
一.允许在接口中有默认方法实现
Java 8 允许我们使用default关键字,为接口声明添
- Oracle表维护 快速备份删除数据
cuisuqiang
oracle索引快速备份删除
我知道oracle表分区,不过那是数据库设计阶段的事情,目前是远水解不了近渴。
当前的数据库表,要求保留一个月数据,且表存在大量录入更新,不存在程序删除。
为了解决频繁查询和更新的瓶颈,我在oracle内根据需要创建了索引。但是随着数据量的增加,一个半月数据就要超千万,此时就算有索引,对高并发的查询和更新来说,让然有所拖累。
为了解决这个问题,我一般一个月会进行一次数据库维护,主要工作就是备
- java多态内存分析
麦田的设计者
java内存分析多态原理接口和抽象类
“ 时针如果可以回头,熟悉那张脸,重温嬉戏这乐园,墙壁的松脱涂鸦已经褪色才明白存在的价值归于记忆。街角小店尚存在吗?这大时代会不会牵挂,过去现在花开怎么会等待。
但有种意外不管痛不痛都有伤害,光阴远远离开,那笑声徘徊与脑海。但这一秒可笑不再可爱,当天心
- Xshell实现Windows上传文件到Linux主机
被触发
windows
经常有这样的需求,我们在Windows下载的软件包,如何上传到远程Linux主机上?还有如何从Linux主机下载软件包到Windows下;之前我的做法现在看来好笨好繁琐,不过也达到了目的,笨人有本方法嘛;
我是怎么操作的:
1、打开一台本地Linux虚拟机,使用mount 挂载Windows的共享文件夹到Linux上,然后拷贝数据到Linux虚拟机里面;(经常第一步都不顺利,无法挂载Windo
- 类的加载ClassLoader
肆无忌惮_
ClassLoader
类加载器ClassLoader是用来将java的类加载到虚拟机中,类加载器负责读取class字节文件到内存中,并将它转为Class的对象(类对象),通过此实例的 newInstance()方法就可以创建出该类的一个对象。
其中重要的方法为findClass(String name)。
如何写一个自己的类加载器呢?
首先写一个便于测试的类Student
- html5写的玫瑰花
知了ing
html5
<html>
<head>
<title>I Love You!</title>
<meta charset="utf-8" />
</head>
<body>
<canvas id="c"></canvas>
- google的ConcurrentLinkedHashmap源代码解析
矮蛋蛋
LRU
原文地址:
http://janeky.iteye.com/blog/1534352
简述
ConcurrentLinkedHashMap 是google团队提供的一个容器。它有什么用呢?其实它本身是对
ConcurrentHashMap的封装,可以用来实现一个基于LRU策略的缓存。详细介绍可以参见
http://code.google.com/p/concurrentlinke
- webservice获取访问服务的ip地址
alleni123
webservice
1. 首先注入javax.xml.ws.WebServiceContext,
@Resource
private WebServiceContext context;
2. 在方法中获取交换请求的对象。
javax.xml.ws.handler.MessageContext mc=context.getMessageContext();
com.sun.net.http
- 菜鸟的java基础提升之道——————>是否值得拥有
百合不是茶
1,c++,java是面向对象编程的语言,将万事万物都看成是对象;java做一件事情关注的是人物,java是c++继承过来的,java没有直接更改地址的权限但是可以通过引用来传值操作地址,java也没有c++中繁琐的操作,java以其优越的可移植型,平台的安全型,高效性赢得了广泛的认同,全世界越来越多的人去学习java,我也是其中的一员
java组成:
- 通过修改Linux服务自动启动指定应用程序
bijian1013
linux
Linux中修改系统服务的命令是chkconfig (check config),命令的详细解释如下: chkconfig
功能说明:检查,设置系统的各种服务。
语 法:chkconfig [ -- add][ -- del][ -- list][系统服务] 或 chkconfig [ -- level <</SPAN>
- spring拦截器的一个简单实例
bijian1013
javaspring拦截器Interceptor
Purview接口
package aop;
public interface Purview {
void checkLogin();
}
Purview接口的实现类PurviesImpl.java
package aop;
public class PurviewImpl implements Purview {
public void check
- [Velocity二]自定义Velocity指令
bit1129
velocity
什么是Velocity指令
在Velocity中,#set,#if, #foreach, #elseif, #parse等,以#开头的称之为指令,Velocity内置的这些指令可以用来做赋值,条件判断,循环控制等脚本语言必备的逻辑控制等语句,Velocity的指令是可扩展的,即用户可以根据实际的需要自定义Velocity指令
自定义指令(Directive)的一般步骤
&nbs
- 【Hive十】Programming Hive学习笔记
bit1129
programming
第二章 Getting Started
1.Hive最大的局限性是什么?一是不支持行级别的增删改(insert, delete, update)二是查询性能非常差(基于Hadoop MapReduce),不适合延迟小的交互式任务三是不支持事务2. Hive MetaStore是干什么的?Hive persists table schemas and other system metadata.
- nginx有选择性进行限制
ronin47
nginx 动静 限制
http {
limit_conn_zone $binary_remote_addr zone=addr:10m;
limit_req_zone $binary_remote_addr zone=one:10m rate=5r/s;...
server {...
location ~.*\.(gif|png|css|js|icon)$ {
- java-4.-在二元树中找出和为某一值的所有路径 .
bylijinnan
java
/*
* 0.use a TwoWayLinkedList to store the path.when the node can't be path,you should/can delete it.
* 1.curSum==exceptedSum:if the lastNode is TreeNode,printPath();delete the node otherwise
- Netty学习笔记
bylijinnan
javanetty
本文是阅读以下两篇文章时:
http://seeallhearall.blogspot.com/2012/05/netty-tutorial-part-1-introduction-to.html
http://seeallhearall.blogspot.com/2012/06/netty-tutorial-part-15-on-channel.html
我的一些笔记
===
- js获取项目路径
cngolon
js
//js获取项目根路径,如: http://localhost:8083/uimcardprj
function getRootPath(){
//获取当前网址,如: http://localhost:8083/uimcardprj/share/meun.jsp
var curWwwPath=window.document.locati
- oracle 的性能优化
cuishikuan
oracleSQL Server
在网上搜索了一些Oracle性能优化的文章,为了更加深层次的巩固[边写边记],也为了可以随时查看,所以发表这篇文章。
1.ORACLE采用自下而上的顺序解析WHERE子句,根据这个原理,表之间的连接必须写在其他WHERE条件之前,那些可以过滤掉最大数量记录的条件必须写在WHERE子句的末尾。(这点本人曾经做过实例验证过,的确如此哦!
- Shell变量和数组使用详解
daizj
linuxshell变量数组
Shell 变量
定义变量时,变量名不加美元符号($,PHP语言中变量需要),如:
your_name="w3cschool.cc"
注意,变量名和等号之间不能有空格,这可能和你熟悉的所有编程语言都不一样。同时,变量名的命名须遵循如下规则:
首个字符必须为字母(a-z,A-Z)。
中间不能有空格,可以使用下划线(_)。
不能使用标点符号。
不能使用ba
- 编程中的一些概念,KISS、DRY、MVC、OOP、REST
dcj3sjt126com
REST
KISS、DRY、MVC、OOP、REST (1)KISS是指Keep It Simple,Stupid(摘自wikipedia),指设计时要坚持简约原则,避免不必要的复杂化。 (2)DRY是指Don't Repeat Yourself(摘自wikipedia),特指在程序设计以及计算中避免重复代码,因为这样会降低灵活性、简洁性,并且可能导致代码之间的矛盾。 (3)OOP 即Object-Orie
- [Android]设置Activity为全屏显示的两种方法
dcj3sjt126com
Activity
1. 方法1:AndroidManifest.xml 里,Activity的 android:theme 指定为" @android:style/Theme.NoTitleBar.Fullscreen" 示例: <application
- solrcloud 部署方式比较
eksliang
solrCloud
solrcloud 的部署其实有两种方式可选,那么我们在实践开发中应该怎样选择呢? 第一种:当启动solr服务器时,内嵌的启动一个Zookeeper服务器,然后将这些内嵌的Zookeeper服务器组成一个集群。 第二种:将Zookeeper服务器独立的配置一个集群,然后将solr交给Zookeeper进行管理
谈谈第一种:每启动一个solr服务器就内嵌的启动一个Zoo
- Java synchronized关键字详解
gqdy365
synchronized
转载自:http://www.cnblogs.com/mengdd/archive/2013/02/16/2913806.html
多线程的同步机制对资源进行加锁,使得在同一个时间,只有一个线程可以进行操作,同步用以解决多个线程同时访问时可能出现的问题。
同步机制可以使用synchronized关键字实现。
当synchronized关键字修饰一个方法的时候,该方法叫做同步方法。
当s
- js实现登录时记住用户名
hw1287789687
记住我记住密码cookie记住用户名记住账号
在页面中如何获取cookie值呢?
如果是JSP的话,可以通过servlet的对象request 获取cookie,可以
参考:http://hw1287789687.iteye.com/blog/2050040
如果要求登录页面是html呢?html页面中如何获取cookie呢?
直接上代码了
页面:loginInput.html
代码:
<!DOCTYPE html PUB
- 开发者必备的 Chrome 扩展
justjavac
chrome
Firebug:不用多介绍了吧https://chrome.google.com/webstore/detail/bmagokdooijbeehmkpknfglimnifench
ChromeSnifferPlus:Chrome 探测器,可以探测正在使用的开源软件或者 js 类库https://chrome.google.com/webstore/detail/chrome-sniffer-pl
- 算法机试题
李亚飞
java算法机试题
在面试机试时,遇到一个算法题,当时没能写出来,最后是同学帮忙解决的。
这道题大致意思是:输入一个数,比如4,。这时会输出:
&n
- 正确配置Linux系统ulimit值
字符串
ulimit
在Linux下面部 署应用的时候,有时候会遇上Socket/File: Can’t open so many files的问题;这个值也会影响服务器的最大并发数,其实Linux是有文件句柄限制的,而且Linux默认不是很高,一般都是1024,生产服务器用 其实很容易就达到这个数量。下面说的是,如何通过正解配置来改正这个系统默认值。因为这个问题是我配置Nginx+php5时遇到了,所以我将这篇归纳进
- hibernate调用返回游标的存储过程
Supanccy2013
javaDAOoracleHibernatejdbc
注:原创作品,转载请注明出处。
上篇博文介绍的是hibernate调用返回单值的存储过程,本片博文说的是hibernate调用返回游标的存储过程。
此此扁博文的存储过程的功能相当于是jdbc调用select 的作用。
1,创建oracle中的包,并在该包中创建的游标类型。
---创建oracle的程
- Spring 4.2新特性-更简单的Application Event
wiselyman
application
1.1 Application Event
Spring 4.1的写法请参考10点睛Spring4.1-Application Event
请对比10点睛Spring4.1-Application Event
使用一个@EventListener取代了实现ApplicationListener接口,使耦合度降低;
1.2 示例
包依赖
<p