Compare commits
No commits in common. "4af7d712cdd7c497325818785df0282da2e6908c" and "a6716da742e243042b757a4030ddbf9899485d3c" have entirely different histories.
4af7d712cd
...
a6716da742
@ -1,4 +1,4 @@
|
|||||||
#NOTE: This is a Maven Resolver internal implementation file, its format can be changed without prior notice.
|
#NOTE: This is a Maven Resolver internal implementation file, its format can be changed without prior notice.
|
||||||
#Fri Feb 20 17:27:25 CST 2026
|
#Tue Feb 17 19:14:24 CST 2026
|
||||||
fund-common-0.0.1-SNAPSHOT.jar>=
|
fund-common-0.0.1-SNAPSHOT.jar>=
|
||||||
fund-common-0.0.1-SNAPSHOT.pom>=
|
fund-common-0.0.1-SNAPSHOT.pom>=
|
||||||
|
|||||||
Binary file not shown.
@ -50,34 +50,6 @@
|
|||||||
<artifactId>jackson-databind</artifactId>
|
<artifactId>jackson-databind</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!-- EasyExcel -->
|
|
||||||
<dependency>
|
|
||||||
<groupId>cn.afterturn</groupId>
|
|
||||||
<artifactId>easypoi-spring-boot-starter</artifactId>
|
|
||||||
<version>4.4.0</version>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
<!-- Lombok -->
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.projectlombok</groupId>
|
|
||||||
<artifactId>lombok</artifactId>
|
|
||||||
<optional>true</optional>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
<!-- Spring Cloud LoadBalancer (租户负载均衡) -->
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.springframework.cloud</groupId>
|
|
||||||
<artifactId>spring-cloud-starter-loadbalancer</artifactId>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
<!-- MyBatis Plus (租户插件) -->
|
|
||||||
<dependency>
|
|
||||||
<groupId>com.baomidou</groupId>
|
|
||||||
<artifactId>mybatis-plus-extension</artifactId>
|
|
||||||
<version>3.5.5</version>
|
|
||||||
<scope>provided</scope>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
<!-- Test -->
|
<!-- Test -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
<groupId>com.fundplatform</groupId>
|
<groupId>com.fundplatform</groupId>
|
||||||
<artifactId>fund-common</artifactId>
|
<artifactId>fund-common</artifactId>
|
||||||
<versioning>
|
<versioning>
|
||||||
<lastUpdated>20260220092715</lastUpdated>
|
<lastUpdated>20260217111414</lastUpdated>
|
||||||
<snapshot>
|
<snapshot>
|
||||||
<localCopy>true</localCopy>
|
<localCopy>true</localCopy>
|
||||||
</snapshot>
|
</snapshot>
|
||||||
@ -11,12 +11,12 @@
|
|||||||
<snapshotVersion>
|
<snapshotVersion>
|
||||||
<extension>pom</extension>
|
<extension>pom</extension>
|
||||||
<value>0.0.1-SNAPSHOT</value>
|
<value>0.0.1-SNAPSHOT</value>
|
||||||
<updated>20260220092715</updated>
|
<updated>20260217111414</updated>
|
||||||
</snapshotVersion>
|
</snapshotVersion>
|
||||||
<snapshotVersion>
|
<snapshotVersion>
|
||||||
<extension>jar</extension>
|
<extension>jar</extension>
|
||||||
<value>0.0.1-SNAPSHOT</value>
|
<value>0.0.1-SNAPSHOT</value>
|
||||||
<updated>20260220092715</updated>
|
<updated>20260217111414</updated>
|
||||||
</snapshotVersion>
|
</snapshotVersion>
|
||||||
</snapshotVersions>
|
</snapshotVersions>
|
||||||
</versioning>
|
</versioning>
|
||||||
|
|||||||
@ -6,6 +6,6 @@
|
|||||||
<versions>
|
<versions>
|
||||||
<version>0.0.1-SNAPSHOT</version>
|
<version>0.0.1-SNAPSHOT</version>
|
||||||
</versions>
|
</versions>
|
||||||
<lastUpdated>20260220092715</lastUpdated>
|
<lastUpdated>20260217111414</lastUpdated>
|
||||||
</versioning>
|
</versioning>
|
||||||
</metadata>
|
</metadata>
|
||||||
|
|||||||
@ -1,3 +1,3 @@
|
|||||||
#NOTE: This is a Maven Resolver internal implementation file, its format can be changed without prior notice.
|
#NOTE: This is a Maven Resolver internal implementation file, its format can be changed without prior notice.
|
||||||
#Fri Feb 20 17:13:04 CST 2026
|
#Tue Feb 17 19:14:15 CST 2026
|
||||||
fundplatform-0.0.1-SNAPSHOT.pom>=
|
fundplatform-0.0.1-SNAPSHOT.pom>=
|
||||||
|
|||||||
@ -60,21 +60,6 @@
|
|||||||
</dependencies>
|
</dependencies>
|
||||||
</dependencyManagement>
|
</dependencyManagement>
|
||||||
|
|
||||||
<!-- 公共依赖 - 所有模块都需要的依赖 -->
|
|
||||||
<dependencies>
|
|
||||||
<!-- Spring Boot Actuator - 健康检查和监控端点 -->
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.springframework.boot</groupId>
|
|
||||||
<artifactId>spring-boot-starter-actuator</artifactId>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
<!-- Micrometer Prometheus - Prometheus 监控指标暴露 -->
|
|
||||||
<dependency>
|
|
||||||
<groupId>io.micrometer</groupId>
|
|
||||||
<artifactId>micrometer-registry-prometheus</artifactId>
|
|
||||||
</dependency>
|
|
||||||
</dependencies>
|
|
||||||
|
|
||||||
<!-- 项目内自定义 Maven 仓库配置,避免依赖外部 settings.xml 中的私服配置 -->
|
<!-- 项目内自定义 Maven 仓库配置,避免依赖外部 settings.xml 中的私服配置 -->
|
||||||
<repositories>
|
<repositories>
|
||||||
<!-- 官方中央仓库 -->
|
<!-- 官方中央仓库 -->
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
<groupId>com.fundplatform</groupId>
|
<groupId>com.fundplatform</groupId>
|
||||||
<artifactId>fundplatform</artifactId>
|
<artifactId>fundplatform</artifactId>
|
||||||
<versioning>
|
<versioning>
|
||||||
<lastUpdated>20260220091303</lastUpdated>
|
<lastUpdated>20260217111414</lastUpdated>
|
||||||
<snapshot>
|
<snapshot>
|
||||||
<localCopy>true</localCopy>
|
<localCopy>true</localCopy>
|
||||||
</snapshot>
|
</snapshot>
|
||||||
@ -11,7 +11,7 @@
|
|||||||
<snapshotVersion>
|
<snapshotVersion>
|
||||||
<extension>pom</extension>
|
<extension>pom</extension>
|
||||||
<value>0.0.1-SNAPSHOT</value>
|
<value>0.0.1-SNAPSHOT</value>
|
||||||
<updated>20260220091303</updated>
|
<updated>20260217111414</updated>
|
||||||
</snapshotVersion>
|
</snapshotVersion>
|
||||||
</snapshotVersions>
|
</snapshotVersions>
|
||||||
</versioning>
|
</versioning>
|
||||||
|
|||||||
@ -6,6 +6,6 @@
|
|||||||
<versions>
|
<versions>
|
||||||
<version>0.0.1-SNAPSHOT</version>
|
<version>0.0.1-SNAPSHOT</version>
|
||||||
</versions>
|
</versions>
|
||||||
<lastUpdated>20260220091303</lastUpdated>
|
<lastUpdated>20260217111414</lastUpdated>
|
||||||
</versioning>
|
</versioning>
|
||||||
</metadata>
|
</metadata>
|
||||||
|
|||||||
@ -4,7 +4,7 @@ import org.springframework.boot.SpringApplication;
|
|||||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||||
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
|
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
|
||||||
|
|
||||||
@SpringBootApplication(scanBasePackages = {"com.fundplatform.exp", "com.fundplatform.common"})
|
@SpringBootApplication
|
||||||
@EnableDiscoveryClient
|
@EnableDiscoveryClient
|
||||||
public class ExpApplication {
|
public class ExpApplication {
|
||||||
|
|
||||||
|
|||||||
@ -4,7 +4,7 @@ import org.springframework.boot.SpringApplication;
|
|||||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||||
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
|
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
|
||||||
|
|
||||||
@SpringBootApplication(scanBasePackages = {"com.fundplatform.file", "com.fundplatform.common"})
|
@SpringBootApplication
|
||||||
@EnableDiscoveryClient
|
@EnableDiscoveryClient
|
||||||
public class FileApplication {
|
public class FileApplication {
|
||||||
|
|
||||||
|
|||||||
@ -2,17 +2,8 @@ package com.fundplatform.gateway;
|
|||||||
|
|
||||||
import org.springframework.boot.SpringApplication;
|
import org.springframework.boot.SpringApplication;
|
||||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||||
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
|
|
||||||
|
|
||||||
@SpringBootApplication(scanBasePackages = {
|
@SpringBootApplication
|
||||||
"com.fundplatform.gateway"
|
|
||||||
// 注意:Gateway不扫描fund-common的任何包,避免依赖冲突
|
|
||||||
// - common.auth: TokenService需要RedisService
|
|
||||||
// - common.cache: 需要非响应式RedisTemplate
|
|
||||||
// - common.nacos: 需要Registration bean
|
|
||||||
// - common.web: 使用Servlet API
|
|
||||||
})
|
|
||||||
@EnableDiscoveryClient
|
|
||||||
public class GatewayApplication {
|
public class GatewayApplication {
|
||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
|
|||||||
@ -1,44 +0,0 @@
|
|||||||
package com.fundplatform.gateway.config;
|
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonAutoDetect;
|
|
||||||
import com.fasterxml.jackson.annotation.PropertyAccessor;
|
|
||||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
|
||||||
import com.fasterxml.jackson.databind.jsontype.impl.LaissezFaireSubTypeValidator;
|
|
||||||
import org.springframework.context.annotation.Bean;
|
|
||||||
import org.springframework.context.annotation.Configuration;
|
|
||||||
import org.springframework.data.redis.connection.ReactiveRedisConnectionFactory;
|
|
||||||
import org.springframework.data.redis.core.ReactiveRedisTemplate;
|
|
||||||
import org.springframework.data.redis.serializer.Jackson2JsonRedisSerializer;
|
|
||||||
import org.springframework.data.redis.serializer.RedisSerializationContext;
|
|
||||||
import org.springframework.data.redis.serializer.StringRedisSerializer;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Redis配置类
|
|
||||||
* 为Gateway提供ReactiveRedisTemplate
|
|
||||||
*/
|
|
||||||
@Configuration
|
|
||||||
public class ReactiveRedisConfig {
|
|
||||||
|
|
||||||
@Bean
|
|
||||||
public ReactiveRedisTemplate<String, Object> reactiveRedisTemplate(
|
|
||||||
ReactiveRedisConnectionFactory connectionFactory) {
|
|
||||||
|
|
||||||
ObjectMapper objectMapper = new ObjectMapper();
|
|
||||||
objectMapper.setVisibility(PropertyAccessor.ALL, JsonAutoDetect.Visibility.ANY);
|
|
||||||
objectMapper.activateDefaultTyping(LaissezFaireSubTypeValidator.instance,
|
|
||||||
ObjectMapper.DefaultTyping.NON_FINAL);
|
|
||||||
|
|
||||||
Jackson2JsonRedisSerializer<Object> jsonSerializer = new Jackson2JsonRedisSerializer<>(objectMapper, Object.class);
|
|
||||||
StringRedisSerializer stringSerializer = StringRedisSerializer.UTF_8;
|
|
||||||
|
|
||||||
RedisSerializationContext<String, Object> serializationContext = RedisSerializationContext
|
|
||||||
.<String, Object>newSerializationContext()
|
|
||||||
.key(stringSerializer)
|
|
||||||
.value(jsonSerializer)
|
|
||||||
.hashKey(stringSerializer)
|
|
||||||
.hashValue(jsonSerializer)
|
|
||||||
.build();
|
|
||||||
|
|
||||||
return new ReactiveRedisTemplate<>(connectionFactory, serializationContext);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -5,7 +5,7 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|||||||
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
|
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
|
||||||
import org.springframework.scheduling.annotation.EnableScheduling;
|
import org.springframework.scheduling.annotation.EnableScheduling;
|
||||||
|
|
||||||
@SpringBootApplication(scanBasePackages = {"com.fundplatform.receipt", "com.fundplatform.common"})
|
@SpringBootApplication
|
||||||
@EnableDiscoveryClient
|
@EnableDiscoveryClient
|
||||||
@EnableScheduling
|
@EnableScheduling
|
||||||
public class ReceiptApplication {
|
public class ReceiptApplication {
|
||||||
|
|||||||
@ -4,7 +4,7 @@ import org.springframework.boot.SpringApplication;
|
|||||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||||
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
|
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
|
||||||
|
|
||||||
@SpringBootApplication(scanBasePackages = {"com.fundplatform.req", "com.fundplatform.common"})
|
@SpringBootApplication
|
||||||
@EnableDiscoveryClient
|
@EnableDiscoveryClient
|
||||||
public class ReqApplication {
|
public class ReqApplication {
|
||||||
|
|
||||||
|
|||||||
@ -8,7 +8,7 @@ import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
|
|||||||
/**
|
/**
|
||||||
* 系统服务启动类
|
* 系统服务启动类
|
||||||
*/
|
*/
|
||||||
@SpringBootApplication(scanBasePackages = {"com.fundplatform.sys", "com.fundplatform.common"})
|
@SpringBootApplication
|
||||||
@EnableDiscoveryClient
|
@EnableDiscoveryClient
|
||||||
@MapperScan("com.fundplatform.sys.data.mapper")
|
@MapperScan("com.fundplatform.sys.data.mapper")
|
||||||
public class SysApplication {
|
public class SysApplication {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user