编程笔记
-
爬虫(5) - 网页数据解析(1) | XPath在爬虫中的应用
什么是XPath XPath即为XML路径语言(XML Path Language) XPath可以用于定位XML文本的节点 实际上,XPath也适用于定位HTML中的节点 节点及节点间的关系 在HTML中,节点就是一个个HTML标签 分析节点间的关系也就是要清…
-
JMS - Publish/Subscribe messaging example using ActiveMQ and Maven
In a publish/subscribe (pub/sub) product or application, clients address messages to a topic, which functions somewhat like a bulletin board. Subscribers can receive information, in the form of messa…
-
RabbitMQ - Download and Install on Windows
RabbitMQ is an open source message broker software that implements the Advanced Message Queuing Protocol (AMQP). The RabbitMQ server is written in the Erlang programming language and client libraries…
-
EasyMock - Unit Testing FacesContext using PowerMock, JUnit and Maven
JSF defines the FacesContext abstract base class for representing all of the contextual information associated with processing an incoming request and creating the corresponding response. When writin…
-
Mockito - Unit Testing FacesContext using PowerMock, JUnit and Maven
JSF defines the FacesContext abstract base class for representing all of the contextual information associated with processing an incoming request and creating the corresponding response. When writin…
-
JMS - Point-to-Point Messaging Example using ActiveMQ and Maven
A point-to-point (PTP) product or application is built on the concept of message queues, senders, and receivers. Each message is addressed to a specific queue and receiving clients extract messages f…
-
JMS - Hello World using ActiveMQ
The Java Message Service (JMS) API is a Java Message Oriented Middleware (MOM) API for sending messages between two or more clients. It is a Java API that allows applications to create, send, receive…
-
JAX-WS - CXF Log Request/Response SOAP Messages Logback
Apache CXF uses Java SE Logging for both client- and server-side logging of SOAP requests and responses. Logging is activated by use of separate in/out interceptors that can be attached to the reques…
-
JAX-WS - CXF Contract First Hello World Webservice Tutorial
Apache CXF is an open source services framework. CXF helps to build and develop services using front-end programming APIs like JAX-WS and JAX-RS. These services can speak a variety of protocols such …
-
Maven - Change Local Repository Location
A repository in Maven is used to hold build artifacts and dependencies of varying types. There are strictly only two types of repositories: local and remote. The local repository refers to a copy on …