问题:TenantRoutingProperties 定义了配置但未被使用 解决方案: 1. TenantAwareLoadBalancer 注入 TenantRoutingProperties - 使用配置的 tenantHeader 名称 - 使用配置的 buildTenantGroup 方法 - 使用配置的 isSharedService 判断 - 使用配置的 isFallbackToShared 策略 2. 新增功能 - 支持 enabled=false 禁用租户路由 - 共享服务跳过租户过滤 - 可配置是否回退到共享实例 3. 更新测试适配新构造函数
326 lines
12 KiB
Plaintext
326 lines
12 KiB
Plaintext
<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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
<groupId>cn.afterturn</groupId>
|
|
<artifactId>easypoi</artifactId>
|
|
<version>4.4.0</version>
|
|
<packaging>pom</packaging>
|
|
<name>easypoi</name>
|
|
<modules>
|
|
<module>easypoi-base</module>
|
|
<module>easypoi-web</module>
|
|
<module>easypoi-annotation</module>
|
|
<module>easypoi-wps</module>
|
|
</modules>
|
|
|
|
<url>http://www.wupaas.com/</url>
|
|
<description>office utils base poi</description>
|
|
|
|
<licenses>
|
|
<license>
|
|
<name>The Apache License, Version 2.0</name>
|
|
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
|
|
</license>
|
|
</licenses>
|
|
|
|
<scm>
|
|
<connection>https://github.com/jueyue/easypoi.git</connection>
|
|
<developerConnection>https://github.com/jueyue/easypoi.git</developerConnection>
|
|
<url>https://github.com/jueyue/easypoi.git</url>
|
|
</scm>
|
|
|
|
<developers>
|
|
<developer>
|
|
<name>JueYue</name>
|
|
<email>quranbo@foxmail.com</email>
|
|
</developer>
|
|
<developer>
|
|
<name>魔幻之翼</name>
|
|
<email>xf.key@163.com</email>
|
|
</developer>
|
|
</developers>
|
|
|
|
<organization>
|
|
<name>悟耘</name>
|
|
<url>http://www.wupaas.com/</url>
|
|
</organization>
|
|
|
|
<properties>
|
|
<sub.version>4.4.0</sub.version>
|
|
<poi.version>4.1.1</poi.version>
|
|
<xerces.version>2.9.1</xerces.version>
|
|
<guava.version>16.0.1</guava.version>
|
|
<commons-lang.version>3.2.1</commons-lang.version>
|
|
<slf4j.version>1.6.1</slf4j.version>
|
|
<spring.version>5.1.7.RELEASE</spring.version>
|
|
</properties>
|
|
<dependencyManagement>
|
|
<dependencies>
|
|
<!-- poi -->
|
|
<dependency>
|
|
<groupId>org.apache.poi</groupId>
|
|
<artifactId>poi</artifactId>
|
|
<version>${poi.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.poi</groupId>
|
|
<artifactId>poi-ooxml</artifactId>
|
|
<version>${poi.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.apache.poi</groupId>
|
|
<artifactId>poi-ooxml-schemas</artifactId>
|
|
<exclusions>
|
|
<exclusion>
|
|
<groupId>xerces</groupId>
|
|
<artifactId>xercesImpl</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
<version>${poi.version}</version>
|
|
</dependency>
|
|
<!-- sax -->
|
|
<dependency>
|
|
<groupId>xerces</groupId>
|
|
<artifactId>xercesImpl</artifactId>
|
|
<version>${xerces.version}</version>
|
|
<optional>true</optional>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.poi</groupId>
|
|
<artifactId>poi-scratchpad</artifactId>
|
|
<version>${poi.version}</version>
|
|
<optional>true</optional>
|
|
</dependency>
|
|
|
|
<!-- Word -->
|
|
<dependency>
|
|
<groupId>org.apache.poi</groupId>
|
|
<artifactId>poi-ooxml-schemas</artifactId>
|
|
<version>${poi.version}</version>
|
|
<optional>true</optional>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.apache.xmlbeans</groupId>
|
|
<artifactId>xmlbeans</artifactId>
|
|
<version>3.1.0</version>
|
|
<optional>true</optional>
|
|
</dependency>
|
|
|
|
<!-- google 工具类 -->
|
|
<dependency>
|
|
<groupId>com.google.guava</groupId>
|
|
<artifactId>guava</artifactId>
|
|
<version>${guava.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.apache.commons</groupId>
|
|
<artifactId>commons-lang3</artifactId>
|
|
<version>${commons-lang.version}</version>
|
|
</dependency>
|
|
|
|
<!--日志 -->
|
|
<!-- slf4j -->
|
|
<dependency>
|
|
<groupId>org.slf4j</groupId>
|
|
<artifactId>slf4j-api</artifactId>
|
|
<version>${slf4j.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.slf4j</groupId>
|
|
<artifactId>slf4j-log4j12</artifactId>
|
|
<version>${slf4j.version}</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
|
|
|
|
<!--spring -->
|
|
<dependency>
|
|
<groupId>org.springframework</groupId>
|
|
<artifactId>spring-web</artifactId>
|
|
<version>${spring.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework</groupId>
|
|
<artifactId>spring-webmvc</artifactId>
|
|
<version>${spring.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework</groupId>
|
|
<artifactId>spring-context</artifactId>
|
|
<version>${spring.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework</groupId>
|
|
<artifactId>spring-core</artifactId>
|
|
<version>${spring.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework</groupId>
|
|
<artifactId>spring-beans</artifactId>
|
|
<version>${spring.version}</version>
|
|
</dependency>
|
|
|
|
|
|
<dependency>
|
|
<groupId>javax.servlet</groupId>
|
|
<artifactId>servlet-api</artifactId>
|
|
<version>2.5</version>
|
|
<scope>provided</scope>
|
|
<optional>true</optional>
|
|
</dependency>
|
|
|
|
<!-- PDF -->
|
|
<dependency>
|
|
<groupId>com.itextpdf</groupId>
|
|
<artifactId>itext7-core</artifactId>
|
|
<version>7.1.12</version>
|
|
<type>pom</type>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.itextpdf</groupId>
|
|
<artifactId>itext-asian</artifactId>
|
|
<version>5.2.0</version>
|
|
<optional>true</optional>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>javax.validation</groupId>
|
|
<artifactId>validation-api</artifactId>
|
|
<version>1.1.0.Final</version>
|
|
</dependency>
|
|
|
|
<!-- el -->
|
|
<dependency>
|
|
<groupId>ognl</groupId>
|
|
<artifactId>ognl</artifactId>
|
|
<version>3.2.6</version>
|
|
</dependency>
|
|
|
|
<!-- read Excel -->
|
|
<dependency>
|
|
<groupId>org.jsoup</groupId>
|
|
<artifactId>jsoup</artifactId>
|
|
<version>1.8.3</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.projectlombok</groupId>
|
|
<artifactId>lombok</artifactId>
|
|
<version>1.16.20</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
|
|
<!-- model -->
|
|
<dependency>
|
|
<groupId>cn.afterturn</groupId>
|
|
<artifactId>easypoi-base</artifactId>
|
|
<version>${sub.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>cn.afterturn</groupId>
|
|
<artifactId>easypoi-annotation</artifactId>
|
|
<version>${sub.version}</version>
|
|
</dependency>
|
|
</dependencies>
|
|
</dependencyManagement>
|
|
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.sonatype.plugins</groupId>
|
|
<artifactId>nexus-staging-maven-plugin</artifactId>
|
|
<version>1.6.5</version>
|
|
<configuration>
|
|
<serverId>ossrh</serverId>
|
|
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
|
|
<autoReleaseAfterClose>true</autoReleaseAfterClose>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-release-plugin</artifactId>
|
|
<version>2.5</version>
|
|
<configuration>
|
|
<autoVersionSubmodules>true</autoVersionSubmodules>
|
|
<useReleaseProfile>false</useReleaseProfile>
|
|
<releaseProfiles>release</releaseProfiles>
|
|
<goals>deploy</goals>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
<version>3.0</version>
|
|
<configuration>
|
|
<source>1.8</source>
|
|
<target>1.8</target>
|
|
<encoding>UTF-8</encoding>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-gpg-plugin</artifactId>
|
|
<version>1.6</version>
|
|
<executions>
|
|
<execution>
|
|
<id>sign-artifacts</id>
|
|
<phase>verify</phase>
|
|
<goals>
|
|
<goal>sign</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-source-plugin</artifactId>
|
|
<version>2.2.1</version>
|
|
<executions>
|
|
<execution>
|
|
<id>attach-sources</id>
|
|
<goals>
|
|
<goal>jar-no-fork</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-javadoc-plugin</artifactId>
|
|
<version>2.6</version>
|
|
<executions>
|
|
<execution>
|
|
<id>attach-javadocs</id>
|
|
<goals>
|
|
<goal>jar</goal>
|
|
</goals>
|
|
<configuration>
|
|
<additionalparam>-Xdoclint:none</additionalparam>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
<configuration>
|
|
<encoding>UTF-8</encoding>
|
|
<failOnError>false</failOnError>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
<distributionManagement>
|
|
<repository>
|
|
<id>oss-release</id>
|
|
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
|
|
</repository>
|
|
<snapshotRepository>
|
|
<id>oss-snapshot</id>
|
|
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
|
|
</snapshotRepository>
|
|
</distributionManagement>
|
|
|
|
</project>
|