跳到主要内容

安装

盘古服务开发框架已经发布到 Maven 中央仓库,直接使用如下方法安装使用即可。

依赖管理模块

盘古资源依赖声明管理模块。所有盘古引用都应该依赖这个模块。

<parent>
<groupId>com.gitee.pulanos.pangu</groupId>
<artifactId>pangu-parent</artifactId>
<version>${最新稳定版本}</version>
<relativePath/>
</parent>

基础模块

盘古启动、中心化配置、动态日志等基础能力自动装配模块。

<dependency>
<groupId>com.gitee.pulanos.pangu</groupId>
<artifactId>pangu-spring-boot-starter</artifactId>
</dependency>

Dubbo模块

盘古微服务开发自动装配模块。

<dependency>
<groupId>com.gitee.pulanos.pangu</groupId>
<artifactId>pangu-dubbo-spring-boot-starter</artifactId>
</dependency>

JDBC模块

盘古数据库持久化操作自动装配模块。

<dependency>
<groupId>com.gitee.pulanos.pangu</groupId>
<artifactId>pangu-jdbc-spring-boot-starter</artifactId>
</dependency>

分布式事务管理模块

盘古 Seata 分布式事务自动装配模块。

<dependency>
<groupId>com.gitee.pulanos.pangu</groupId>
<artifactId>pangu-seata-spring-boot-starter</artifactId>
</dependency>

数据治理模块

盘古 ShardingSphere 数据治理(如:读写分离、数据分片、数据加密等)自动装配模块。

<dependency>
<groupId>com.gitee.pulanos.pangu</groupId>
<artifactId>pangu-data-governance-spring-boot-starter</artifactId>
</dependency>

缓存模块

盘古缓存开发自动装配模块。

<dependency>
<groupId>com.gitee.pulanos.pangu</groupId>
<artifactId>pangu-cache-spring-boot-starter</artifactId>
</dependency>

消息队列模块

盘古 RabbitMQ 消息队列开发自动装配模块。

<dependency>
<groupId>com.gitee.pulanos.pangu</groupId>
<artifactId>pangu-rabbitmq-spring-boot-starter</artifactId>
</dependency>

Web模块

盘古 Web 应用自动装配模块。

<dependency>
<groupId>com.gitee.pulanos.pangu</groupId>
<artifactId>pangu-web-spring-boot-starter</artifactId>
</dependency>

代码生成插件

盘古代码生成器 Maven 插件。

<dependency>
<groupId>com.gitee.pulanos.pangu</groupId>
<artifactId>pangu-generator-maven-plugin</artifactId>
</dependency>

下一步

继续阅读其它章节获取你想要的答案或通过我们的 开发者社区 寻求更多帮助。