I am exactly following this guide, and I have used the exact pom just added lombok, just in case.
I have my routing as follows for testing,
` @Configuration
public class AppConfig {
@Bean
public RouteLocator myRoutes(RouteLocatorBuilder builder) {
return builder
.routes()
.route(p ->
p.path("/service1/**")
.uri("lb://service1"))
.route(p ->
p.path("/service2/**")
.uri("lb://service2")
)
.build();
}
}`
I also see that the routes are registered. I have my application.yml file as follows
`spring:
cloud:
gateway:
http:
encoding:
enabled: true
httpclient:
ssl:
useInsecureTrustManager: true
enabled: false
application:
name: GATEWAY
server:
ssl:
enabled: false
port: 8084
eureka:
client:
ssl:
enabled: false`
So whenever I am doing a GET request to /service1, http://localhost:8084/service1/login (service1 is a dummy name) it throws
{ "timestamp": "2024-07-28T06:46:11.260+00:00", "path": "/service1/login", "status": 500, "error": "Internal Server Error", "requestId": "c2b123d4-1" }
with the exception:
io.netty.handler.ssl.NotSslRecordException: not an SSL/TLS record:
I have tried several things like server.ssl.enabled=false and many other things as you can see in the application.properties but it does not help.
I want to test services in local development, localhost as a developer.