Domestic users can access gitee and synchronize code with github.
oauthserver is a complete independent Oauth2 Server microservice based on Spring Boot Oauth2. The purpose of the project is that you only need to create relevant data tables and modify the database connection information, and you can get an Oauth2 Server microservice.
For the convenience of development, the project is split into 6 modules, eureka-server, oauth, common, api, web, old-task:
Supported relational databases:
Public tool module
For more historical update logs, view CHANGE_LOG.md
For IntelliJ IDEA or Eclipse, please install the lombok plug-in first.
Some self-built jars are not available in the central warehouse and need to be installed locally using mvn install
. Execute install.bat
installation in the "jars that need to be installed" folder.
Note: Databases ignore case. All SQL files are in the "SQL Initialization" directory.
schema-mysql.sql
to complete the creation of the data table and the import of test data. After that, execute the corresponding incremental update SQL.schema-oracle.sql
to complete the creation of the data table and the import of test data. After that, execute the corresponding incremental update SQL.schema-postgresql.sql
to complete the creation of the data table and the import of test data. After that, execute the corresponding incremental update SQL.schema-sqlserver.sql
to complete the creation of the data table and the import of test data. After that, execute the corresponding incremental update SQL.application-mysql.yml
. After modifying the database connection information, you also need to set spring.profiles.active=mysql
in application-common.yml
.application-oracle.yml
. After modifying the database connection information, you also need to set spring.profiles.active=oracle
in application-common.yml
.application-pg.yml
. After modifying the database connection information, you also need to set spring.profiles.active=pg
in application-common.yml
.application-sqlserver.yml
. After modifying the database connection information, you also need to set spring.profiles.active=sqlserver
in application-common.yml
.Start eureka-server first, and then start the oauth authorization module. There is no fixed startup order for other modules. But if you need to use the scheduled task function of the web module, you need to start the old-task module first.
oauth interface calling example
Test account: mobile phone number 18800000000, password 1234567890c
If you have any questions or problems during use, please submit an issue and I will reply as soon as possible.