Urule官方文档地址:http://www.bstek.com/resources/doc/4.0/
1.打开Urule官方文档,找到SpringBoot配置
![](https://img-blog.csdnimg.cn/img_convert/6404975fa5c13dcf16786e400370e46d.png)
2.打开参考项目地址:https://gitee.com/xiaodaodao/urule-pro-boot,复制克隆地址
![](https://img-blog.csdnimg.cn/img_convert/93b9f61ff0703401014f423ec6da8434.png)
3.打开idea,把克隆的项目拉取下来
![](https://img-blog.csdnimg.cn/img_convert/7038124d5d718e628d1396ffa494fe9a.png)
4.项目拉下来后,打开项目的配置,选择SDK
![](https://img-blog.csdnimg.cn/img_convert/e9b37d8942c5d8ff0d2a51c87327da86.png)
![](https://img-blog.csdnimg.cn/img_convert/730bc1a1ca35ecec08f6fe17fa40d663.png)
5.在项目的resources目录下新建一个urule-init.properties的文件,里面填urule.home=你存放的路劲,后面Urule会自动生成配置信息到你存放的路径。
![](https://img-blog.csdnimg.cn/img_convert/d6db274b9da9703530097d9720e45c31.png)
6.启动项目,访问 localhost:8081(默认端口)即可,可在application.yml中修改,
来到页面,一般我们选择JDBC数据源,点击下一步。
![](https://img-blog.csdnimg.cn/img_convert/6d231bd43e5d9eeac6810eb93f2fd55a.png)
7.选择数据库类型,小编在这选择了Mysql。
![](https://img-blog.csdnimg.cn/img_convert/799d92ff1357d8d35037b20c07a82efc.png)
默认urule,没有的话可以创建一个,也可以选择你对应的数据库,填写用户名和密码,然后点击确定。
![](https://img-blog.csdnimg.cn/img_convert/dcd6b0840113a9879d1d1558f05c21e9.png)
初始化完成后,注册一个用户,跳转到登陆页面,以上就是Urule初始化的全过程。
![](https://img-blog.csdnimg.cn/img_convert/289d3b96eeea6d527eba6ec80bdf9823.png)
8.如果你想利用spring配置文件配置urule数据库的数据源,则要清空urule.home属性的值,例如:
urule.home=
![](https://img-blog.csdnimg.cn/img_convert/87cbf3cb8f1d89006fbe118f5c8e391b.png)
如果数据库中没有Urule相关的表,直接用spring配置文件来配置urule的数据源,启动就会报错。
第一次应向导式配置数据源,启动项目,初始化系统表后,再使用spring配置文件来配置urule的数据源