Ger Roza 7ee5019f7e [BAEL-3313] spring-cloud/spring-cloud-gateway | Writing custom Spring Cloud Gateway Filters (#8182)
* updated dependency management in spring-cloud-gateway pom.xml

* * renamed org package to com
* renamed spring.cloud package to springcloudgateway
* deleted SpringContextIntegrationTest, as per BAEL-14304
* updated spring Junit test to jupiter

* separated introduction-application properties from application.yml, fixing launch error due to file not found exception

* Added Service to use as Proxied Service

* Added global filters and debug logs for article

* fixed error in properties source, plus added GatewayFilter Factories

* implemented Modify Request example

* implemented Modify Response example

* implemented Chain Request example

* Added Tests:
* Live Test for gateway
* Integration tests for services
Fixed small issues

* renamed tests that were not following BDD naming
2019-11-22 18:42:56 -08:00

91 lines
3.3 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://maven.apache.org/POM/4.0.0"
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>
<artifactId>spring-cloud-gateway</artifactId>
<packaging>jar</packaging>
<name>spring-cloud-gateway</name>
<parent>
<groupId>com.baeldung.spring.cloud</groupId>
<artifactId>spring-cloud</artifactId>
<version>1.0.0-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>${spring-cloud-dependencies.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<!-- Junit bom upgrade needed only because of a bug with STS,
should be removed with Spring Boot 2.2.0 -->
<!-- https://github.com/spring-projects/sts4/issues/371 -->
<dependency>
<groupId>org.junit</groupId>
<artifactId>junit-bom</artifactId>
<version>5.5.2</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>${spring-boot.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-gateway</artifactId>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-validator-cdi</artifactId>
<version>${hibernate-validator.version}</version>
</dependency>
<dependency>
<groupId>javax.validation</groupId>
<artifactId>validation-api</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
<properties>
<spring-cloud-dependencies.version>Greenwich.SR3</spring-cloud-dependencies.version>
<!-- Spring Boot version compatible with Spring Cloud Release train -->
<spring-boot.version>2.1.9.RELEASE</spring-boot.version>
<hibernate-validator.version>6.0.2.Final</hibernate-validator.version>
</properties>
</project>