fix spring-cloud-gateway project setup, update boot version
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
package com.baeldung.spring.cloud;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
|
||||
@SpringBootApplication
|
||||
public class GatewayApplication {
|
||||
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(GatewayApplication.class, args);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
server:
|
||||
port: 80
|
||||
spring:
|
||||
cloud:
|
||||
gateway:
|
||||
routes:
|
||||
- id: baeldung_route
|
||||
uri: http://www.baeldung.com
|
||||
predicates:
|
||||
- Path=/baeldung
|
||||
management:
|
||||
security:
|
||||
enabled: false
|
||||
Reference in New Issue
Block a user