## D.3 Nacos统一配置中心 - 添加spring-cloud-starter-alibaba-nacos-config依赖 - 创建bootstrap.yaml配置文件 - DynamicConfig: @RefreshScope动态配置刷新示例 ## F.1 ShardingSphere读写分离 - 添加shardingsphere-jdbc-core依赖 - sharding-config.yaml: 读写分离配置示例 - 支持主从切换、负载均衡策略 ## F.3 数据库索引优化 - db-index-optimization.sql: 全库索引优化脚本 - 用户/角色/菜单/部门表索引 - 用款/支出/收款表索引 - 复合索引优化常用查询场景
127 lines
4.0 KiB
XML
127 lines
4.0 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<parent>
|
|
<groupId>com.fundplatform</groupId>
|
|
<artifactId>fundplatform</artifactId>
|
|
<version>0.0.1-SNAPSHOT</version>
|
|
</parent>
|
|
|
|
<artifactId>fund-sys</artifactId>
|
|
<name>fund-sys</name>
|
|
<description>System Service</description>
|
|
|
|
<dependencies>
|
|
<!-- fund-common -->
|
|
<dependency>
|
|
<groupId>com.fundplatform</groupId>
|
|
<artifactId>fund-common</artifactId>
|
|
<version>0.0.1-SNAPSHOT</version>
|
|
</dependency>
|
|
|
|
<!-- Spring Boot Web -->
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-web</artifactId>
|
|
</dependency>
|
|
|
|
<!-- MyBatis-Plus for Spring Boot 3 -->
|
|
<dependency>
|
|
<groupId>com.baomidou</groupId>
|
|
<artifactId>mybatis-plus-spring-boot3-starter</artifactId>
|
|
<version>3.5.5</version>
|
|
</dependency>
|
|
|
|
<!-- MySQL Driver -->
|
|
<dependency>
|
|
<groupId>com.mysql</groupId>
|
|
<artifactId>mysql-connector-j</artifactId>
|
|
</dependency>
|
|
|
|
<!-- ShardingSphere 读写分离 -->
|
|
<dependency>
|
|
<groupId>org.apache.shardingsphere</groupId>
|
|
<artifactId>shardingsphere-jdbc-core</artifactId>
|
|
<version>5.4.1</version>
|
|
</dependency>
|
|
|
|
<!-- HikariCP -->
|
|
<dependency>
|
|
<groupId>com.zaxxer</groupId>
|
|
<artifactId>HikariCP</artifactId>
|
|
</dependency>
|
|
|
|
<!-- Shiro -->
|
|
<!--
|
|
<dependency>
|
|
<groupId>org.apache.shiro</groupId>
|
|
<artifactId>shiro-spring-boot-web-starter</artifactId>
|
|
<version>1.13.0</version>
|
|
</dependency>
|
|
-->
|
|
|
|
<!-- JWT -->
|
|
<dependency>
|
|
<groupId>io.jsonwebtoken</groupId>
|
|
<artifactId>jjwt-api</artifactId>
|
|
<version>0.11.5</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.jsonwebtoken</groupId>
|
|
<artifactId>jjwt-impl</artifactId>
|
|
<version>0.11.5</version>
|
|
<scope>runtime</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.jsonwebtoken</groupId>
|
|
<artifactId>jjwt-jackson</artifactId>
|
|
<version>0.11.5</version>
|
|
<scope>runtime</scope>
|
|
</dependency>
|
|
|
|
<!-- BCrypt密码加密 -->
|
|
<dependency>
|
|
<groupId>org.springframework.security</groupId>
|
|
<artifactId>spring-security-crypto</artifactId>
|
|
</dependency>
|
|
|
|
<!-- Nacos服务注册发现 -->
|
|
<dependency>
|
|
<groupId>com.alibaba.cloud</groupId>
|
|
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
|
|
</dependency>
|
|
|
|
<!-- Nacos配置中心 -->
|
|
<dependency>
|
|
<groupId>com.alibaba.cloud</groupId>
|
|
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
|
|
</dependency>
|
|
|
|
<!-- Spring Cloud Bootstrap (用于配置中心) -->
|
|
<dependency>
|
|
<groupId>org.springframework.cloud</groupId>
|
|
<artifactId>spring-cloud-starter-bootstrap</artifactId>
|
|
</dependency>
|
|
|
|
<!-- Logstash Logback Encoder (用于ELK) -->
|
|
<dependency>
|
|
<groupId>net.logstash.logback</groupId>
|
|
<artifactId>logstash-logback-encoder</artifactId>
|
|
<version>7.4</version>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
</project>
|