Coder Social home page Coder Social logo

Comments (2)

venwyhk avatar venwyhk commented on June 14, 2024

您好,
如果您的微服务系统中有gateway或者类似nginx转发机制,这类问题其实很容易解决.这也是我更推荐的方式.

除此之外,还可以通过自定义ApplicationUrl来解决.

以我的Sample代码作为修改示例,将Application.java中的:

return new ProviderSignInController(connectionFactoryLocator, usersConnectionRepository, wechatSignInAdapter);

改为:

ProviderSignInController psc = new ProviderSignInController(connectionFactoryLocator, usersConnectionRepository, wechatSignInAdapter); psc.setApplicationUrl("http://www.hotcloud.tech/sp"); return psc;

重启Sample后,redirect_uri将改为:

redirect_uri=http%3A%2F%2Fwww.hotcloud.tech%2Fsp%2Fsignin%2Fwechat

希望这能够解决您的问题.

from spring-social-wechat.

tonny79 avatar tonny79 commented on June 14, 2024

非常感谢回复,按照您提供的方案问题已解决,谢谢!

from spring-social-wechat.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.