Home > Back-end >  Beginners springcloud gateway encountered a problem thank you very much
Beginners springcloud gateway encountered a problem thank you very much

Time:01-01

First of all is my environment
2.3.7. RELEASE springboot springcloud Hoxton. SR9
Below is a pom file, this is a child module, so will integrate some rely on


But I want to use RouteLocator will have problems to configure routing



All of them are very simple, the project cannot be started, here is the error information
Description:

The Parameter 0 of method routeLocator in icu. Bleuweb. GatewayApplication required a bean of type 'org. Springframework. Cloud. Gateway. The route. Builder. RouteLocatorBuilder' that could not be found.

The following candidates were found but could not be injected:
- Bean method 'routeLocatorBuilder' 'GatewayAutoConfiguration' not in the loaded because @ ConditionalOnClass did not find the required class 'org. Springframework. Web. Reactive. DispatcherHandler'

To ask what do

CodePudding user response:

Need a `. RouteLocatorBuilder ` class but did not find, may be the wrong version, there are conflicts

CodePudding user response:

Hoxton. SR1 and boot 2.2.2 no problem, I try your version

CodePudding user response:

I know, and spring - the boot - start - web depend on the conflict
  • Related