|
|
@@ -5,57 +5,78 @@ import React,{Component,PropTypes} from 'react';
|
|
|
export default class QuickStart extends Component{
|
|
|
render(){
|
|
|
return (
|
|
|
- <div style={{fontSize: '13px',fontFamily: 'Microsoft YaHei UI, Microsoft YaHei',margin:'10px'}}><h1>URule Console Quick Start</h1>
|
|
|
- 首先下载到URule Console及URule Core的jar包,如果是Maven项目,则需要在pom.xml中添加如下依赖:
|
|
|
- <pre style={{fontSize: '15px',border:'solid #666666 1px;padding: 10px'}}>
|
|
|
- <dependency><br/>
|
|
|
- <groupId>com.bstek.urule</groupId><br/>
|
|
|
- <artifactId>urule-console</artifactId><br/>
|
|
|
- <version>[version]</version><br/>
|
|
|
- </dependency><br/>
|
|
|
- </pre>
|
|
|
- 因为URule Console中架构在Spring之上的,所以需要加载URule Console中提供的Spring配置文件,具体方法是打开web.xml文件,在其中添加Spring的ContextLoaderListener,具体配置如下:
|
|
|
- <pre style={{fontSize: '15px',border:'solid #666666 1px;padding: 10px'}}>
|
|
|
- <listener><br/>
|
|
|
- <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class><br/>
|
|
|
- </listener><br/>
|
|
|
- <context-param><br/>
|
|
|
- <param-name>contextConfigLocation</param-name><br/>
|
|
|
- <param-value>/WEB-INF/context.xml</param-value><br/>
|
|
|
- </context-param><br/>
|
|
|
- </pre>
|
|
|
- 上面的context.xml是个位于当前项目WEB-INF目录下的spring配置文件,用于引用URule Console中的Spring配置文件,实现URule Console中Spring配置文件的间接加载,当前context.xml中加载URule Console的Spring配置文件方法就是添加一条import语句,如下所示:
|
|
|
- <pre style={{fontSize: '15px',border:'solid #666666 1px;padding: 10px'}}>
|
|
|
- <import resource="classpath:urule-console-context.xml"/>
|
|
|
- </pre>
|
|
|
- URule中有一些默认的允许外部覆盖的属性,比如用于指定当前知识库存放目录的urule.repository.dir属性、用于指定URule Console控制台首页显示页面的urule.welcomePage属性等,对于这些属性我们可以新建一个properties文件,在添加设置这些属性值,然后在我们的context.xml文件中通过如下方法加载即可:
|
|
|
- <pre style={{fontSize: '15px',border:'solid #666666 1px;padding: 10px'}}>
|
|
|
- <bean parent="urule.props"><br/>
|
|
|
- <property name="location"><br/>
|
|
|
- <value>/WEB-INF/configure.properties</value><br/>
|
|
|
- </property><br/>
|
|
|
- </bean><br/>
|
|
|
- </pre>
|
|
|
- 这里ID为urule.props的Bean是URule中提供的一个用于加载Spring外部属性文件的Bean,通过上述方式就可以将外部属性文件加载并覆盖URule中默认的属性值,当然如果我们的应用中也有属性需要加载,也可以放在这个文件中一并加载,因为这里通过urule.props加载的spring的属性文件就是标准的spring属性文件加载方式。<br/>
|
|
|
- 最后我们还需要在项目的web.xml当中添加URule Console中的一个Servlet,这个Servlet负责控制台中所有页面与服务端的交互,配置信息如下:
|
|
|
- <pre style={{fontSize: '15px',border:'solid #666666 1px;padding: 10px'}}>
|
|
|
- <servlet><br/>
|
|
|
- <servlet-name>uruleServlet</servlet-name><br/>
|
|
|
- <servlet-class>com.bstek.urule.console.servlet.URuleServlet</servlet-class><br/>
|
|
|
- </servlet><br/>
|
|
|
- <servlet-mapping><br/>
|
|
|
- <servlet-name>uruleServlet</servlet-name><br/>
|
|
|
- <url-pattern>/urule/*</url-pattern><br/>
|
|
|
- </servlet-mapping>
|
|
|
- </pre>
|
|
|
- 在上面的servlet配置当中,需要注意的是servlet-mapping中的url-pattern的值必须是/urule/*。<br/>
|
|
|
- <br/>运行项目,浏览如下地址,就可以看到URule Console提供的控制台:
|
|
|
- <pre style={{fontSize: '15px',border:'solid #666666 1px;padding: 10px'}}>
|
|
|
- http://localhost:[port]/[contextPath]/urule/frame
|
|
|
- </pre>
|
|
|
- <div>
|
|
|
- 了解更多信息,请至<a href="http://wiki.bsdn.org/display/urule2" target="_blank">http://wiki.bsdn.org/display/urule2</a>
|
|
|
- </div>
|
|
|
+ <div style={{fontSize: '14px',fontFamily: 'Microsoft YaHei UI, Microsoft YaHei',margin:'10px'}}><h1 style={{textAlign:"center"}}>欢迎您使用URULE开源免费版本</h1>
|
|
|
+ <div style={{marginTop:"20px"}}>
|
|
|
+ 您当前正在使用的是URULE开源免费版本,Github地址为:<a href="https://github.com/youseries/urule" target="_blank">https://github.com/youseries/urule</a>。
|
|
|
+ <div style={{marginTop:"10px"}}>如果您需要更多功能,更完善的技术支持,可以选择<a href="http://www.bstek.com/products/urule" target="_blank"><strong>URULE PRO</strong></a>版,点击<a href="http://www.bstek.com/products/urule" target="_blank">此处</a>了解更多URULE PRO版信息</div>
|
|
|
+ </div>
|
|
|
+ <table className="table table-bordered" style={{marginTop:'20px'}}>
|
|
|
+ <thead>
|
|
|
+ <tr style={{background:'#fdfdfd',textAlign:"left",verticalAlign:'middle',fontSize:'18px',color:'#7b7a7a'}}><td colSpan="3">URULE PRO版与开源版主要功能比较</td></tr>
|
|
|
+ </thead>
|
|
|
+ <tbody>
|
|
|
+ <tr style={{fontSize:'14pt',background:'#98908d',color:'#fff'}}>
|
|
|
+ <td style={{width:'200px'}}>特性</td>
|
|
|
+ <td>URULE PRO版</td>
|
|
|
+ <td>URULE开源版</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td>向导式决策集</td>
|
|
|
+ <td><i className="glyphicon glyphicon-ok" style={{fontSize:'20px',color:'green'}}></i></td>
|
|
|
+ <td><i className="glyphicon glyphicon-ok" style={{fontSize:'20px',color:'green'}}></i></td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td>脚本式决策集</td>
|
|
|
+ <td><i className="glyphicon glyphicon-ok" style={{fontSize:'20px',color:'green'}}></i></td>
|
|
|
+ <td><i className="glyphicon glyphicon-ok" style={{fontSize:'20px',color:'green'}}></i></td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td>决策树</td>
|
|
|
+ <td><i className="glyphicon glyphicon-ok" style={{fontSize:'20px',color:'green'}}></i></td>
|
|
|
+ <td><i className="glyphicon glyphicon-ok" style={{fontSize:'20px',color:'green'}}></i></td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td>决策流</td>
|
|
|
+ <td><i className="glyphicon glyphicon-ok" style={{fontSize:'20px',color:'green'}}></i></td>
|
|
|
+ <td><i className="glyphicon glyphicon-ok" style={{fontSize:'20px',color:'green'}}></i></td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td>决策表</td>
|
|
|
+ <td><i className="glyphicon glyphicon-ok" style={{fontSize:'20px',color:'green'}}></i></td>
|
|
|
+ <td><i className="glyphicon glyphicon-ok" style={{fontSize:'20px',color:'green'}}></i></td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td>交叉决策表</td>
|
|
|
+ <td><i className="glyphicon glyphicon-ok" style={{fontSize:'20px',color:'green'}}></i></td>
|
|
|
+ <td><i className="glyphicon glyphicon-remove" style={{fontSize:'20px',color:'red'}}></i></td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td>文件名、项目名重构</td>
|
|
|
+ <td><i className="glyphicon glyphicon-ok" style={{fontSize:'20px',color:'green'}}></i></td>
|
|
|
+ <td><i className="glyphicon glyphicon-remove" style={{fontSize:'20px',color:'red'}}></i></td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td>参数名、变量常量名重构</td>
|
|
|
+ <td><i className="glyphicon glyphicon-ok" style={{fontSize:'20px',color:'green'}}></i></td>
|
|
|
+ <td><i className="glyphicon glyphicon-remove" style={{fontSize:'20px',color:'red'}}></i></td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td>大数据批量处理性能调优</td>
|
|
|
+ <td><i className="glyphicon glyphicon-ok" style={{fontSize:'20px',color:'green'}}></i></td>
|
|
|
+ <td><i className="glyphicon glyphicon-remove" style={{fontSize:'20px',color:'red'}}></i></td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td>更为完善的文件读写权限控制</td>
|
|
|
+ <td><i className="glyphicon glyphicon-ok" style={{fontSize:'20px',color:'green'}}></i></td>
|
|
|
+ <td><i className="glyphicon glyphicon-remove" style={{fontSize:'20px',color:'red'}}></i></td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td>技术支持</td>
|
|
|
+ <td><i className="glyphicon glyphicon-ok" style={{fontSize:'20px',color:'green'}}></i></td>
|
|
|
+ <td><i className="glyphicon glyphicon-remove" style={{fontSize:'20px',color:'red'}}></i></td>
|
|
|
+ </tr>
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
</div>
|
|
|
);
|
|
|
}
|