Spring oauth2 添加表前缀名
Spring oauth2 add tables prefix name
Spring 默认为 oauth2 创建五个表:
- oauth_access_token
- oauth_approvals
- oauth_client_details
- oauth_client_token
- oauth_code
- oauth_refresh_token
我需要为该表添加前缀,例如 adm_oauth_refresh_token
在哪里可以选择这样做?
你没有提到很多关于你的配置(事实上你一般没有提到很多),但是你可以设置 SQL 语句和它们各自的设置器来自 类(按照link获取源代码):
Spring 默认为 oauth2 创建五个表:
- oauth_access_token
- oauth_approvals
- oauth_client_details
- oauth_client_token
- oauth_code
- oauth_refresh_token
我需要为该表添加前缀,例如 adm_oauth_refresh_token 在哪里可以选择这样做?
你没有提到很多关于你的配置(事实上你一般没有提到很多),但是你可以设置 SQL 语句和它们各自的设置器来自 类(按照link获取源代码):