1. 启动jeecg后端项目报错如截图

jeecgbug2402261.png

Caused by: java.lang.IllegalArgumentException: Could not resolve placeholder 'cas.prefixUrl' in value "${cas.prefixUrl}"

2. 查找原因发现

jeecgbug2402262.png

数据源初始化失败:WARN c.b.dynamic.datasource.DynamicRoutingDataSource:239 - dynamic-datasource initial loaded [0] datasource,Please add your primary datasource or check your configuration 猜测是加载了错误配置文件

3. 问题解决

在maven profiles 从prod 切换为 dev 时,点击左上角的刷新按钮 😂😂😂