Recently, the company needs to rebuild the system permission framework. I use gateway as the gateway.
I have to admit that gateway configuration is really good. In the past, when using nginx, I had to configure a lot of messy things, now I don’t need to configure certificates
There was no problem when the project was running, but when the jar package was run alone after packaging, it encountered this problem. After looking for it all afternoon, a netizen told me that as long as you use the gateway gateway, you will encounter this problem.
resolvent:
Add configuration in the POM file of gateway
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-validation</artifactId>
</dependency>
Perfect solution
Read More:
- ‘dependencies.dependency.version‘ for org.springframework.cloud:spring-cloud-starter-openfeign:jar
- Nginx 502 Error: Failed to load resource: the server responded with a status of 502 (Bad Gateway)
- Gateway forwards weboskct with an error ClassCastException
- bug-JAVA call SAP function Connect to SAP gateway failed
- Failed to instantiate org.mybatis.spring.SqlSessionTemplate Constructor threw exception
- docker Error creating default “bridge“ network: failed to allocate gateway Address already in use
- The route addition failed: Either the interface index is wrong or the gateway do es not lie on the s
- gateway Internal Server Error 500 Invalid host: lb://xxxxxx
- Spring Cloud:org.springframework.web.client.HttpClientErrorException: 404 null
- Zuul gateway routing URL and service ID configuration
- Hzero – if the local swagger fails to register, the connection timeout or gateway error will be displayed
- Error: RPC failed; HTTP 504 curl 22 the requested URL returned error: 504 gateway time out
- [Solved] Error in registering Eureka for spring cloud micro service: classnotfoundexception: org.apache.http.conn.scheme.schemeregistry
- org.springframework.core.NestedIOException: Failed to parse mapping resource: ‘file
- Error processing condition on org.springframework.boot . autoconfigure.context.Property Error report solution
- Execution repackage of goal org.springframework.boot:spring-boot-maven-plugin:2.4.0:repackage failed
- When the springcloud obtains the cloud link database information, an error is reported: errorcode 1045, state 28000
- NoClassDefFoundError: org.springframework.validation.annotation.ValidationAnnotationUtils
- Failed to instantiate [org.springframework.aop.aspectj.AspectJExpressionPointcut]: No default constr
- Failed to instantiate [org.springframework.web.servlet.HandlerMapping] Factory method ‘resourceHandl