快速启动
这篇文章主要说明如何启动Ruoyi-Vue-Plus前后端项目, 需要您提前在自己的电脑配置Jdk,Maven,Node,pnpm组件。
后端
在Idea导入项目Ruoyi-Vue-Plus我们是基于这个开源项目集成工作流(Camunda/Flowable), 您拿到的是相同结构的代码, 只不过增加了工作流模块。
application.yml
master:
type: ${spring.datasource.type}
driverClassName: com.mysql.cj.jdbc.Driver
# jdbc 所有参数配置参考 https://lionli.blog.csdn.net/article/details/122018562
# rewriteBatchedStatements=true 批处理优化 大幅提升批量插入更新删除性能(对数据库有性能损耗 使用批量操作应考虑性能问题)
url: jdbc:mysql://rm-bp1a466bb62123091co.mysql.rds.aliyuncs.com/ruoyi-vue-plus?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true
username: xxx
password: xxx
spring.data:
redis:
# 地址
host: xxx
# 端口,默认为6379
port: 6379
# 数据库索引
database: 10
# redis 密码必须配置
password: xxx
# 连接超时时间
timeout: 10s
# 是否开启ssl
ssl.enabled: false
在ruoyi-admin模块中找到application-dev.yml和application-prod.yml, 把redis和mysql改造成自己的
数据库
找到项目script/sql文件夹, 把ruoyi-vue.sql 这个核心脚本执行到数据库
