安装
盘古服务开发框架已经发布到 Maven 中央仓库,直接使用如下方法安装使用即可。
依赖管理模块
盘古资源依赖声明管理模块。所有盘古引用都应该依赖这个模块。
- Maven坐标
- Gradle DSL
<parent>
<groupId>com.gitee.pulanos.pangu</groupId>
<artifactId>pangu-parent</artifactId>
<version>${最新稳定版本}</version>
<relativePath/>
</parent>
implementation 'com.gitee.pulanos.pangu:pangu-parent:${最新稳定版本}'
基础模块
盘古启动、中心化配置、动态日志等基础能力自动装配模块。
- Maven坐标
- Gradle DSL
<dependency>
<groupId>com.gitee.pulanos.pangu</groupId>
<artifactId>pangu-spring-boot-starter</artifactId>
</dependency>
implementation 'com.gitee.pulanos.pangu:pangu-spring-boot-starter:${最新稳定版本}'
Dubbo模块
盘古微服务开发自动装配模块。
- Maven坐标
- Gradle DSL
<dependency>
<groupId>com.gitee.pulanos.pangu</groupId>
<artifactId>pangu-dubbo-spring-boot-starter</artifactId>
</dependency>
implementation 'com.gitee.pulanos.pangu:pangu-dubbo-spring-boot-starter:${最新稳定版本}'
JDBC模块
盘古数据库持久化操作自动装配模块。
- Maven坐标
- Gradle DSL
<dependency>
<groupId>com.gitee.pulanos.pangu</groupId>
<artifactId>pangu-jdbc-spring-boot-starter</artifactId>
</dependency>
implementation 'com.gitee.pulanos.pangu:pangu-jdbc-spring-boot-starter:${最新稳定版本}'
分布式事务管理模块
盘古 Seata 分布式事务自动装配模块。
- Maven坐标
- Gradle DSL
<dependency>
<groupId>com.gitee.pulanos.pangu</groupId>
<artifactId>pangu-seata-spring-boot-starter</artifactId>
</dependency>
implementation 'com.gitee.pulanos.pangu:pangu-seata-spring-boot-starter:${最新稳定版本}'
数据治理模块
盘古 ShardingSphere 数据治理(如:读写分离、数据分片、数据加密等)自动装配模块。
- Maven坐标
- Gradle DSL
<dependency>
<groupId>com.gitee.pulanos.pangu</groupId>
<artifactId>pangu-data-governance-spring-boot-starter</artifactId>
</dependency>
implementation 'com.gitee.pulanos.pangu:pangu-data-governance-spring-boot-starter:${最新稳定版本}'
缓存模块
盘古缓存开发自动装配模块。
- Maven坐标
- Gradle DSL
<dependency>
<groupId>com.gitee.pulanos.pangu</groupId>
<artifactId>pangu-cache-spring-boot-starter</artifactId>
</dependency>
implementation 'com.gitee.pulanos.pangu:pangu-cache-spring-boot-starter:${最新稳定版本}'
消息队列模块
盘古 RabbitMQ 消息队列开发自动装配模块。
- Maven坐标
- Gradle DSL
<dependency>
<groupId>com.gitee.pulanos.pangu</groupId>
<artifactId>pangu-rabbitmq-spring-boot-starter</artifactId>
</dependency>
implementation 'com.gitee.pulanos.pangu:pangu-rabbitmq-spring-boot-starter:${最新稳定版本}'
Web模块
盘古 Web 应用自动装配模块。
- Maven坐标
- Gradle DSL
<dependency>
<groupId>com.gitee.pulanos.pangu</groupId>
<artifactId>pangu-web-spring-boot-starter</artifactId>
</dependency>
implementation 'com.gitee.pulanos.pangu:pangu-web-spring-boot-starter:${最新稳定版本}'
代码生成插件
盘古代码生成器 Maven 插件。
- Maven坐标
- Gradle DSL
<dependency>
<groupId>com.gitee.pulanos.pangu</groupId>
<artifactId>pangu-generator-maven-plugin</artifactId>
</dependency>
implementation 'com.gitee.pulanos.pangu:pangu-generator-maven-plugin:${最新稳定版本}'
下一步
继续阅读其它章节获取你想要的答案或通过我们的 开发者社区 寻求更多帮助。