0%

JMS(JAVA Message Service,java消息服务)API是一个消息服务的标准或者说是规范,允许应用程序组件基于JavaEE平台创建、发送、接收和读取消息。它使分布式通信耦合度更低,消息服务更加可靠以及异步性。

基本概念

JMS是java的消息服务,JMS的客户端之间可以通过JMS服务进行异步的消息传输。

消息模型

  • Point-to-Point(P2P)
  • Publish/Subscribe(Pub/Sub)

即点对点和发布订阅模型

阅读全文 »

1. 取得当天

1
2
3
4
5
6
mysql> SELECT curdate();
+------------+
| curdate() |
+------------+
| 2013-07-29 |
+------------+

2. 取得当前日期

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
mysql> select sysdate();
+---------------------+
| sysdate() |
+---------------------+
| 2016-05-30 13:58:17 |
+---------------------+
1 row in set

mysql> select now();
+---------------------+
| now() |
+---------------------+
| 2016-05-30 13:58:29 |
+---------------------+
1 row in set
阅读全文 »

1
2
3
public static void main(String args[]){
System.out.println("hello world");
}

Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.

Quick Start

Create a new post

1
$ hexo new "My New Post"

More info: Writing

Run server

1
$ hexo server

More info: Server

Generate static files

1
$ hexo generate

More info: Generating

Deploy to remote sites

1
$ hexo deploy

More info: Deployment

Title - Artist
0:00