Comments (2)
您好,
如果您的微服务系统中有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.
非常感谢回复,按照您提供的方案问题已解决,谢谢!
from spring-social-wechat.
Related Issues (4)
- 感谢作者的贡献,希望被 Spring 官方认可 HOT 2
- 关于springboot版本的问题 HOT 1
- 如何接入移动应用
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spring-social-wechat.