This commit is contained in:
@@ -14,13 +14,11 @@
|
||||
<h1 class="project-name">RedKale</h1>
|
||||
<h2 class="project-tagline"></h2>
|
||||
<a href="index.html" class="btn">RedKale</a>
|
||||
<a href="redkale.html" class="btn">RedKale入门</a>
|
||||
<a href="redkale.html" class="btn">RedKale 入门</a>
|
||||
<a href="convert.html" class="btn">Convert 组件</a>
|
||||
<a href="service.html" class="btn">Service 组件</a>
|
||||
<a href="source.html" class="btn">Source 组件</a>
|
||||
<a href="net.html" class="btn">Net 组件</a>
|
||||
<a href="net_http.html" class="btn">HTTP 协议</a>
|
||||
<a href="net_sncp.html" class="btn">SNCP 协议</a>
|
||||
<a href="https://github.com/wentch/redkale" class="btn">Github 源码</a>
|
||||
</section>
|
||||
|
||||
|
||||
@@ -14,13 +14,11 @@
|
||||
<h1 class="project-name">RedKale</h1>
|
||||
<h2 class="project-tagline"></h2>
|
||||
<a href="index.html" class="btn">RedKale</a>
|
||||
<a href="redkale.html" class="btn">RedKale入门</a>
|
||||
<a href="redkale.html" class="btn">RedKale 入门</a>
|
||||
<a href="convert.html" class="btn">Convert 组件</a>
|
||||
<a href="service.html" class="btn">Service 组件</a>
|
||||
<a href="source.html" class="btn">Source 组件</a>
|
||||
<a href="net.html" class="btn">Net 组件</a>
|
||||
<a href="net_http.html" class="btn">HTTP 协议</a>
|
||||
<a href="net_sncp.html" class="btn">SNCP 协议</a>
|
||||
<a href="https://github.com/wentch/redkale" class="btn">Github 源码</a>
|
||||
</section>
|
||||
|
||||
|
||||
4
net.html
4
net.html
@@ -14,13 +14,11 @@
|
||||
<h1 class="project-name">RedKale</h1>
|
||||
<h2 class="project-tagline"></h2>
|
||||
<a href="index.html" class="btn">RedKale</a>
|
||||
<a href="redkale.html" class="btn">RedKale入门</a>
|
||||
<a href="redkale.html" class="btn">RedKale 入门</a>
|
||||
<a href="convert.html" class="btn">Convert 组件</a>
|
||||
<a href="service.html" class="btn">Service 组件</a>
|
||||
<a href="source.html" class="btn">Source 组件</a>
|
||||
<a href="net.html" class="btn">Net 组件</a>
|
||||
<a href="net_http.html" class="btn">HTTP 协议</a>
|
||||
<a href="net_sncp.html" class="btn">SNCP 协议</a>
|
||||
<a href="https://github.com/wentch/redkale" class="btn">Github 源码</a>
|
||||
</section>
|
||||
|
||||
|
||||
@@ -14,13 +14,11 @@
|
||||
<h1 class="project-name">RedKale</h1>
|
||||
<h2 class="project-tagline"></h2>
|
||||
<a href="index.html" class="btn">RedKale</a>
|
||||
<a href="redkale.html" class="btn">RedKale入门</a>
|
||||
<a href="redkale.html" class="btn">RedKale 入门</a>
|
||||
<a href="convert.html" class="btn">Convert 组件</a>
|
||||
<a href="service.html" class="btn">Service 组件</a>
|
||||
<a href="source.html" class="btn">Source 组件</a>
|
||||
<a href="net.html" class="btn">Net 组件</a>
|
||||
<a href="net_http.html" class="btn">HTTP 协议</a>
|
||||
<a href="net_sncp.html" class="btn">SNCP 协议</a>
|
||||
<a href="https://github.com/wentch/redkale" class="btn">Github 源码</a>
|
||||
</section>
|
||||
|
||||
|
||||
@@ -14,13 +14,11 @@
|
||||
<h1 class="project-name">RedKale</h1>
|
||||
<h2 class="project-tagline"></h2>
|
||||
<a href="index.html" class="btn">RedKale</a>
|
||||
<a href="redkale.html" class="btn">RedKale入门</a>
|
||||
<a href="redkale.html" class="btn">RedKale 入门</a>
|
||||
<a href="convert.html" class="btn">Convert 组件</a>
|
||||
<a href="service.html" class="btn">Service 组件</a>
|
||||
<a href="source.html" class="btn">Source 组件</a>
|
||||
<a href="net.html" class="btn">Net 组件</a>
|
||||
<a href="net_http.html" class="btn">HTTP 协议</a>
|
||||
<a href="net_sncp.html" class="btn">SNCP 协议</a>
|
||||
<a href="https://github.com/wentch/redkale" class="btn">Github 源码</a>
|
||||
</section>
|
||||
|
||||
|
||||
21
redkale.html
21
redkale.html
@@ -14,18 +14,16 @@
|
||||
<h1 class="project-name">RedKale</h1>
|
||||
<h2 class="project-tagline"></h2>
|
||||
<a href="index.html" class="btn">RedKale</a>
|
||||
<a href="redkale.html" class="btn">RedKale入门</a>
|
||||
<a href="redkale.html" class="btn">RedKale 入门</a>
|
||||
<a href="convert.html" class="btn">Convert 组件</a>
|
||||
<a href="service.html" class="btn">Service 组件</a>
|
||||
<a href="source.html" class="btn">Source 组件</a>
|
||||
<a href="net.html" class="btn">Net 组件</a>
|
||||
<a href="net_http.html" class="btn">HTTP 协议</a>
|
||||
<a href="net_sncp.html" class="btn">SNCP 协议</a>
|
||||
<a href="https://github.com/wentch/redkale" class="btn">Github 源码</a>
|
||||
</section>
|
||||
|
||||
<section class="main-content">
|
||||
<h3><a id="redkale_start" class="anchor" href="#" aria-hidden="true"><span class="octicon octicon-link"></span></a>RedKale 入门介绍</h3>
|
||||
<h3><a id="redkale_start" class="anchor" href="#" aria-hidden="true"><span class="octicon octicon-link"></span></a>RedKale 功能</h3>
|
||||
|
||||
<p> RedKale虽然只有1.xM大小,但是麻雀虽小五脏俱全。既可作为服务器使用,也可当工具包使用。作为独立的工具包提供以下功能:<br/>
|
||||
1、convert包提供JSON的序列化和反解析功能,类似Gson、Jackson。 <br/>
|
||||
@@ -40,7 +38,7 @@
|
||||
<p> RedKale作为服务器的目录如下: <br/>
|
||||
<b>bin</b> : 存放启动关闭脚本(start.sh、shutdown.sh、start.bat、shutdown.bat) <br/>
|
||||
<b>conf</b> : 存放服务器所需配置文件:<br/>
|
||||
application.xml: 服务配置文件 (必需);<br/>
|
||||
<a href="#redkale_confxml">application.xml</a>: 服务配置文件 (必需);<br/>
|
||||
logging.properties:日志配置文件 (可选); <br/>
|
||||
persistence.xml:数据库配置文件 (可选);<br/>
|
||||
<b>lib</b> : 存放服务所依赖的第三方包,redkale.jar 放在此处。 <br/>
|
||||
@@ -49,21 +47,22 @@
|
||||
</p>
|
||||
|
||||
<p> RedKale启动的流程如下:<br/>
|
||||
1、加载 application.xml 并解析。 <br/>
|
||||
1、加载 <a href="#redkale_confxml">application.xml</a> 并解析。 <br/>
|
||||
2、初始化 <b><resources></b> 节点中的资源。 <br/>
|
||||
3、解析所有的 <b><server></b> 节点。 <br/>
|
||||
4、先初始化所有的SNCP协议 <b><server></b> 节点,再初始化非SNCP协议的节点。 <br/>
|
||||
4、初始化并启动所有<b><server></b> 节点的Server服务 (优先加载SNCP协议的Server)。 <br/>
|
||||
5、初始化单个Server: <br/>
|
||||
5.1、扫描classpath加载所有可用Service实现类并实例化,然后相互依赖注入。 <br/>
|
||||
5.2、Service实例在依赖注入过程中加载所需的DataSource、CacheSource资源。 <br/>
|
||||
5.3、调用所有本地模式Service的init方法。 <br/>
|
||||
5.4、扫描classpath加载所有可用Servlet实现类并实例化。<br/>
|
||||
5.5、调用所有Servlet的init方法。 <br/>
|
||||
5.6、启动Server的服务监听。 <br/>
|
||||
5.4、扫描classpath加载所有可用Servlet实现类并实例化 (优先实例化WebSocketServlet)。<br/>
|
||||
5.5、给所有Servlet依赖注入所需的Service。 <br/>
|
||||
5.6、调用所有Servlet的init方法。 <br/>
|
||||
5.7、启动Server的服务监听。 <br/>
|
||||
6、启动进程本身的监听服务。 <br/>
|
||||
</p>
|
||||
|
||||
<h3><a id="redkale_xml" class="anchor" href="#" aria-hidden="true"><span class="octicon octicon-link"></span></a>appplication.xml 配置说明</h3>
|
||||
<h3><a id="redkale_confxml" class="anchor" href="#" aria-hidden="true"><span class="octicon octicon-link"></span></a>appplication.xml 配置说明</h3>
|
||||
<div class="highlight"><pre><span class="cp"><?xml version="1.0" encoding="UTF-8"?></span>
|
||||
<span class="c"><!-- </span>
|
||||
<span class="c"> 文件说明:</span>
|
||||
|
||||
@@ -14,13 +14,11 @@
|
||||
<h1 class="project-name">RedKale</h1>
|
||||
<h2 class="project-tagline"></h2>
|
||||
<a href="index.html" class="btn">RedKale</a>
|
||||
<a href="redkale.html" class="btn">RedKale入门</a>
|
||||
<a href="redkale.html" class="btn">RedKale 入门</a>
|
||||
<a href="convert.html" class="btn">Convert 组件</a>
|
||||
<a href="service.html" class="btn">Service 组件</a>
|
||||
<a href="source.html" class="btn">Source 组件</a>
|
||||
<a href="net.html" class="btn">Net 组件</a>
|
||||
<a href="net_http.html" class="btn">HTTP 协议</a>
|
||||
<a href="net_sncp.html" class="btn">SNCP 协议</a>
|
||||
<a href="https://github.com/wentch/redkale" class="btn">Github 源码</a>
|
||||
</section>
|
||||
|
||||
|
||||
@@ -14,13 +14,11 @@
|
||||
<h1 class="project-name">RedKale</h1>
|
||||
<h2 class="project-tagline"></h2>
|
||||
<a href="index.html" class="btn">RedKale</a>
|
||||
<a href="redkale.html" class="btn">RedKale入门</a>
|
||||
<a href="redkale.html" class="btn">RedKale 入门</a>
|
||||
<a href="convert.html" class="btn">Convert 组件</a>
|
||||
<a href="service.html" class="btn">Service 组件</a>
|
||||
<a href="source.html" class="btn">Source 组件</a>
|
||||
<a href="net.html" class="btn">Net 组件</a>
|
||||
<a href="net_http.html" class="btn">HTTP 协议</a>
|
||||
<a href="net_sncp.html" class="btn">SNCP 协议</a>
|
||||
<a href="https://github.com/wentch/redkale" class="btn">Github 源码</a>
|
||||
</section>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user