package com.wb.permission.domain;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;


/**
 * Created by yangxh on 2022/4/29.
 */
//@Component
public class RedisRoleListener implements InitializingBean {

    @Autowired
    private RoleByRedisService roleService;

    @Override
    public void afterPropertiesSet() throws Exception {
        roleService.putRole(null, null, null);
    }
}