# sofaboot-learning **Repository Path**: frinder/sofaboot-learning ## Basic Information - **Project Name**: sofaboot-learning - **Description**: 支付宝sofaboot学习 - **Primary Language**: Java - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 1 - **Created**: 2018-12-21 - **Last Updated**: 2023-06-14 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # sofaboot-learning ### 参照: > `http://www.sofastack.tech/sofa-boot/docs/sofa-jarslink-jarslink-deploy-demo` ### 使用 JarsLink 多应用动态部署 1. `javaee-module` 模拟 web 应用,添加 Ark 容器 2. `javase-module` 模拟非 web 应用,动态添加&卸载模块 #### 操作步骤 1. 以 Ark 方式启动 web 应用 > `java -jar -Xms512m -Xmn512m javaee-module-1.0-SNAPSHOT-executable-ark.jar` 2. 连接 JarsLink 指令终端 > `itelnet localhost 1234` 3. 检查应该 > `check -b` 4. 动态安装 biz 非 web 应用 > `install -b file:///E:/git/learn/sofaboot-learning/javase-module/target/javase-module-1.0-SNAPSHOT-ark-biz.jar` 5. 动态卸载应用 > `uninstall -b -n javase-module -v 1.0-SNAPSHOT` #### JVM 通信 + `base-module` 模块定义服务 + `javaee-module` 调用 `base-module` 模块服务 + `javase-module` 提供服务 > 启动方式参考上文 #### health 检查 > Spring boot2 默认不显示 health 检查详细信息,需要添加如下配置: ``` management: endpoint: health: show-details: always ``` > 访问页面 `http://localhost:8080/actuator/health` 6. 分布式事务 > 参照:`https://tech.antfin.com/docs/2/46887`