As the web has evolved, more sites are served over HTTPS. The discuz-ucenter-api-for-java library that connects Discuz’s UCenter to Java runs into trouble over HTTPS: it’s a very old project that hasn’t been updated in ages and doesn’t support HTTPS endpoints. So I updated it.
Using discuz-ucenter-api-for-java over HTTPS(SSL)
If your endpoint is HTTPS, use version 1.0.6 or later. As of this post the latest is 1.0.7, and here’s the Maven pom.xml entry:
<dependency>
<groupId>net.renfei</groupId>
<artifactId>discuz-ucenter-api-for-java</artifactId>
<version>1.0.7</version>
</dependency>
I won’t bore you with a full tutorial — plenty of places have written it up, including my own repo.
Repositories
- [Main] GitHub: https://github.com/renfei/discuz-ucenter-api-for-java
- [Mirror] GitLab: https://gitlab.com/renfei/discuz-ucenter-api-for-java
- [Mirror] Gitee: https://gitee.com/rnf/discuz-ucenter-api-for-java
- [Mirror] Coding: https://githubi.coding.net/public/renfei/discuz-ucenter-api-for-java/git/files
If it helps you, drop a star on the repo and I’ll be happy.
