Tech
Sa-Token necessary implement StpInterface
sql table reference: RBAC SQL table create
There has two function is must be override, which is getPermissionList and getRoleList , because sa-token unknown your structure of SQL. So, you want to tell it how to get your PermissionList and RoleList .
1. StpInterfaceImpl
@Component
public class StpInterfaceImpl implements StpInterface {
@Autowired
private SysPermissionService sysPermissionService ;
@Autowired
private SysR...
Read the full discussion on Dev.to
This article was aggregated from Dev.to. Click to join the conversation.
View on Dev.to