Springboot Drill ----- Gateway

1. Create new gate module

2. Configure pom.xml  and application.yml

3. Add start zuul annonation

4. Code authFilter

5. Refer

<1>

Cause: 访问任意接口提示Unauthorized,返回401,并跳转到登陆页面的错误

Cause By: pom sping-boot-started-security

Solve:remove pom this is dependency

<2>

Cause: org.springframework.context.annotation.ConfigurationClassPostProcessor.importRegistry

Cause By:no mysql connection configuration 

Solve:configuration mysql properties

猜你喜欢

转载自blog.csdn.net/qq_29086793/article/details/106703465