I understand that services need to be registered on components discovered by services such as Eureka and Consul. Zuul configures redirection by reading the content of eureka or consul. The advantage of this is that there is no need to know the specific location of the service. Services need to obtain service information through eureka. For authentication, you can use spring security to add tags to set up the protection method and the terminal that provides authentication services.
spring cloud itself does not have any servicesapi调用的吧。 不太清楚你的api是一种什么形式,像rpc/restInterface authentication can be done directly through the interface provider.
Spring Cloud only opens one external system and can be accessed by other LANs. The gateway provides a whitelist, which can be accessed from the outside
I understand that services need to be registered on components discovered by services such as Eureka and Consul. Zuul configures redirection by reading the content of eureka or consul. The advantage of this is that there is no need to know the specific location of the service. Services need to obtain service information through eureka. For authentication, you can use spring security to add tags to set up the protection method and the terminal that provides authentication services.
spring cloud itself does not have any services
api
调用的吧。不太清楚你的
api
是一种什么形式,像rpc/rest
Interface authentication can be done directly through the interface provider.Spring Cloud only opens one external system and can be accessed by other LANs. The gateway provides a whitelist, which can be accessed from the outside