git地址:https://gitee.com/rayson517/RuoYi-Cloud-Plus
需要注意几个问题:
1、nacos必须2.0及以上,用1.4的会提示无法连接nacos
2、配置文件中,必须加入token的定义,git里面拉取的配置,导入数据库后,没有token定义,会导致多个项目无法启动
方法:
application-dev.yml文件中增加:
token:
secret: 'lsoo292839283'
base64编码的secret不能为空
3、git拉取的配置文件,ruoyi-system-dev.yml中,仍然是定义的:
# mybatis配置
mybatis:
# 搜索指定包别名
typeAliasesPackage: com.ruoyi.system
# 配置mapper的扫描,找到所有的mapper.xml映射文件
mapperLocations: classpath:mapper/**/*.xml
需要把mybatis改为mybatis-plus,其他不变,否则会报错:
org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML
Error creating bean with name 'sqlSessionFactory' defined in class path resource
Error creating bean with name 'sysConfigController': Unsatisfied dependency expressed through
等等。