1. Create new gate module

Springboot Drill ----- Gateway

2. Configure pom.xml  and application.yml

Springboot Drill ----- Gateway

Springboot Drill ----- Gateway

3. Add start zuul annonation

Springboot Drill ----- Gateway

4. Code authFilter

Springboot Drill ----- Gateway

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

Springboot Drill ----- Gateway

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-09-06
  • 2021-06-22
  • 2022-12-23
  • 2022-12-23
  • 2021-07-05
  • 2021-10-21
猜你喜欢
  • 2021-06-18
  • 2021-10-15
  • 2021-11-29
  • 2022-12-23
  • 2022-12-23
  • 2022-01-08
  • 2022-12-23
相关资源
相似解决方案