refactor: 将 bff 的gateway 迁移到 gateway 项目下,将 aggr 重命名为 bff
diff --git a/bff/admin/pom.xml b/bff/admin/pom.xml
index 0f600d2..d141279 100644
--- a/bff/admin/pom.xml
+++ b/bff/admin/pom.xml
@@ -1,5 +1,5 @@
-<?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"
+<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>
@@ -19,7 +19,7 @@
<description>Supwisdom Backend Framework Admin Backend for Frontend project</description>
<properties>
- <start-class>com.supwisdom.institute.admin.bff.Application</start-class>
+ <start-class>com.supwisdom.institute.backend.admin.bff.Application</start-class>
</properties>
<dependencies>
@@ -31,13 +31,6 @@
</dependency>
<dependency>
- <groupId>javax.servlet</groupId>
- <artifactId>javax.servlet-api</artifactId>
- <scope>provided</scope>
- </dependency>
-
-
- <dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
</dependency>
@@ -48,27 +41,28 @@
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-webflux</artifactId>
- </dependency>
-
+
<dependency>
<groupId>org.springframework.cloud</groupId>
- <artifactId>spring-cloud-starter-gateway</artifactId>
+ <artifactId>spring-cloud-starter-openfeign</artifactId>
</dependency>
- <!-- <dependency>
+ <dependency>
+ <groupId>org.springframework.boot</groupId>
+ <artifactId>spring-boot-starter-web</artifactId>
+ </dependency>
+
+ <dependency>
<groupId>com.supwisdom.infras</groupId>
<artifactId>infras-online-doc</artifactId>
- </dependency> -->
+ </dependency>
<!-- <dependency>
<groupId>com.supwisdom.infras</groupId>
<artifactId>infras-mvc</artifactId>
- </dependency>
+ </dependency> -->
<dependency>
<groupId>com.supwisdom.infras</groupId>
@@ -83,34 +77,6 @@
<dependency>
<groupId>com.supwisdom.infras</groupId>
<artifactId>infras-lang</artifactId>
- </dependency> -->
-
-
- <!-- <dependency>
- <groupId>com.supwisdom.infras</groupId>
- <artifactId>infras-security</artifactId>
- <exclusions>
- <exclusion>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-web</artifactId>
- </exclusion>
- </exclusions>
- </dependency> -->
-
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-security</artifactId>
- </dependency>
-
- <dependency>
- <groupId>io.jsonwebtoken</groupId>
- <artifactId>jjwt</artifactId>
- <version>0.9.1</version>
- </dependency>
-
- <dependency>
- <groupId>org.springframework.security</groupId>
- <artifactId>spring-security-cas</artifactId>
</dependency>
@@ -118,13 +84,19 @@
<groupId>com.supwisdom.institute</groupId>
<artifactId>sw-backend-common-framework</artifactId>
</dependency>
-
-
+
+
+ <!-- openfeign's dependency -->
<dependency>
- <groupId>com.alibaba</groupId>
- <artifactId>fastjson</artifactId>
+ <groupId>com.netflix.feign</groupId>
+ <artifactId>feign-httpclient</artifactId>
</dependency>
+ <!-- <dependency>
+ <groupId>org.apache.httpcomponents</groupId>
+ <artifactId>httpclient</artifactId>
+ </dependency> -->
+
<dependency>
<groupId>io.springfox</groupId>
@@ -136,6 +108,12 @@
</dependency>
+ <dependency>
+ <groupId>mysql</groupId>
+ <artifactId>mysql-connector-java</artifactId>
+ <scope>runtime</scope>
+ </dependency>
+
<!-- 热部署,无需重启项目 -->
<dependency>
<groupId>org.springframework.boot</groupId>
@@ -143,6 +121,7 @@
<scope>runtime</scope>
</dependency>
+
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
@@ -180,6 +159,7 @@
<!-- <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
+ <version>2.4.3</version>
<configuration>
<encoding>${project.build.sourceEncoding}</encoding>
</configuration>
@@ -196,24 +176,24 @@
<overwrite>true</overwrite>
<resources>
<resource>
- <directory>${basedir}/../../doc</directory>
+ <directory>${basedir}/../doc</directory>
</resource>
</resources>
</configuration>
</execution>
<execution>
- <id>copy-certs-jwt-resources</id>
+ <id>copy-api-docs-resources</id>
<phase>package</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<encoding>utf-8</encoding>
- <outputDirectory>${basedir}/target/certs/jwt</outputDirectory>
+ <outputDirectory>${basedir}/target/api-docs</outputDirectory>
<overwrite>true</overwrite>
<resources>
<resource>
- <directory>${basedir}/../../certs/jwt</directory>
+ <directory>${basedir}/../api-docs</directory>
</resource>
</resources>
</configuration>