• 欢迎光临~

零基础小白从0到1的spring cloud alibaba 全家桶项目

开发技术 开发技术 2022-10-18 次浏览
  • 零基础暖心计划课程内容

https://sparrowzoo.feishu.cn/drive/folder/fldcnq4HSou8VzzxaV5j0R97TWg

  • 原型

https://mastergo.com/file/72419140498526?page_id=46%3A74

  • 事件风暴

https://miro.com/app/board/uXjVOrN6CTc=/?share_link_id=989415167402

启动sparrow-passport
1. clone sparrow-bom
https://github.com/sparrowzoo/sparrow-bom
git@github.com:sparrowzoo/sparrow-bom.git


Sparrow 项目的parent pom 包,用来配置相关dependency management


git pull
mvn clean install
2. clone sparrow-shell


Sparrow 框架 具体参见项目readme
https://github.com/sparrowzoo/sparrow-shell


git pull
mvn clean install
or
sh build.sh


3. clone sparrow-os/sparrow-zoo-bom
https://github.com/sparrow-os/sparrow-zoo-bom
开源企业级项目的parent,所有子项目的父pom


git pull
mvn clean install


4. https://github.com/sparrow-os/sparrow-passport-ddd


用户passport 项目 登录注册 密码安全相关
其他与该项目类似
git pull
mvn clean install
动态设置数据库密码
1. 先从环境变量获取 环境变量的key mysql_sparrow_password 其中sparrow就是schema
2. 再从本地配置文件读取


String envPasswordKey = "mysql_" + schema + "_password";
String password = System.getenv(envPasswordKey);
logger.info("password_key {},password {}", envPasswordKey, password);
datasourceConfig.setPassword(password);
if (StringUtility.isNullOrEmpty(datasourceConfig.getPassword())) {
    datasourceConfig.setPassword(props.getProperty(schema + ".password"));
}
 前端JS 框架
https://github.com/sparrowzoo/sparrow-js

 

程序员灯塔
转载请注明原文链接:零基础小白从0到1的spring cloud alibaba 全家桶项目
喜欢 (0)
违法和不良信息举报电话:022-22558618 举报邮箱:dljd@tidljd.com