In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article mainly introduces the spring cloud gateway forwarding service error report how to do, the article is very detailed, has a certain reference value, interested friends must read it!
The error is as follows
Javax.net.ssl.SSLHandshakeException: error:1000009c:SSL routines:OPENSSL_internal:HTTP_REQUEST
In the spring cloud gateway project, after using SSL authentication, in order to increase system performance, netty-tcnative-boringssl-static dependency is introduced to increase performance, and the above error will be reported when some http requests to access gateway in the project.
Solution
Check if there are any http requests in the system to access the gateway, and change the http request to https.
GateWay has several important configurations and is the most important thing
Gateway.discovery.enable:true, which enables service discovery routing, which means that services can be discovered in registries such as nacos
Routes routing, which can be understood as a module, every module registered in the service center
Id: the only one does not have any special meaning, just the same name as the service name
Uri: the name of the service in the registry, forwarded by this name, or an address.
Predicates:-Path=/a/**
Assert, in fact, it is a matching path, there are many ways to match, the phone is not easy to tap, you can search it.
When I access the gateWay service in the project
The GateWay service port is 7777 called A.
The port to be accessed through the GateWay service is 8888, called B.
Http://localhost:7777/a/xxxx is supposed to be able to access B service, A service also went to the registry to find the configuration asserted as a uri service, and then has been 404, and then looked at the document, it turned out to be careless
The address I visited was / a/xx. I went to find this service, but I didn't find the path, so it was 404.
You also need a configuration to allow gateWay to automatically remove a section of the path filters:-StripPrefix=1
The front-end access remains the same, but the back-end gateway automatically removes the an in the middle of the path.
The above is all the contents of the article "how to report an error in spring cloud gateway forwarding Service". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 212
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.