|
@ -120,23 +120,6 @@ |
|
|
<artifactId>dynamic-datasource-spring-boot-starter</artifactId> |
|
|
<artifactId>dynamic-datasource-spring-boot-starter</artifactId> |
|
|
<version>3.5.2</version> <!-- 版本号可根据实际情况调整 --> |
|
|
<version>3.5.2</version> <!-- 版本号可根据实际情况调整 --> |
|
|
</dependency> |
|
|
</dependency> |
|
|
<!-- <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> <!– 或 jjwt-gson –>--> |
|
|
|
|
|
<!-- <version>0.11.5</version>--> |
|
|
|
|
|
<!-- <scope>runtime</scope>--> |
|
|
|
|
|
<!-- </dependency>--> |
|
|
|
|
|
<dependency> |
|
|
<dependency> |
|
|
<groupId>io.jsonwebtoken</groupId> |
|
|
<groupId>io.jsonwebtoken</groupId> |
|
|
<artifactId>jjwt</artifactId> |
|
|
<artifactId>jjwt</artifactId> |
|
@ -177,7 +160,43 @@ |
|
|
</dependency> |
|
|
</dependency> |
|
|
</dependencies> |
|
|
</dependencies> |
|
|
|
|
|
|
|
|
|
|
|
<!--配置多环境打包--> |
|
|
|
|
|
<profiles> |
|
|
|
|
|
<!--开发环境--> |
|
|
|
|
|
<profile> |
|
|
|
|
|
<id>dev</id> |
|
|
|
|
|
<properties> |
|
|
|
|
|
<!--自定义的属性--> |
|
|
|
|
|
<spring.profiles.active>dev</spring.profiles.active> |
|
|
|
|
|
</properties> |
|
|
|
|
|
<activation> |
|
|
|
|
|
<!--如果不指定,则默认使用dev开发环境配置--> |
|
|
|
|
|
<activeByDefault>true</activeByDefault> |
|
|
|
|
|
</activation> |
|
|
|
|
|
</profile> |
|
|
|
|
|
<!-- 测试环境--> |
|
|
|
|
|
<profile> |
|
|
|
|
|
<id>test</id> |
|
|
|
|
|
<properties> |
|
|
|
|
|
<spring.profiles.active>test</spring.profiles.active> |
|
|
|
|
|
</properties> |
|
|
|
|
|
</profile> |
|
|
|
|
|
<!--生产环境--> |
|
|
|
|
|
<profile> |
|
|
|
|
|
<id>prod</id> |
|
|
|
|
|
<properties> |
|
|
|
|
|
<spring.profiles.active>pro</spring.profiles.active> |
|
|
|
|
|
</properties> |
|
|
|
|
|
</profile> |
|
|
|
|
|
</profiles> |
|
|
<build> |
|
|
<build> |
|
|
|
|
|
<finalName>${project.name}</finalName> |
|
|
|
|
|
<resources> |
|
|
|
|
|
<resource> |
|
|
|
|
|
<directory>src/main/resources</directory> |
|
|
|
|
|
<filtering>true</filtering> |
|
|
|
|
|
</resource> |
|
|
|
|
|
</resources> |
|
|
<plugins> |
|
|
<plugins> |
|
|
<plugin> |
|
|
<plugin> |
|
|
<groupId>org.apache.maven.plugins</groupId> |
|
|
<groupId>org.apache.maven.plugins</groupId> |
|
|