NutzCN Logo
问答 nutz-plugins-slog 集成重写后没有name值
发布于 1988天前 作者 tanoak10 1195 次浏览 复制 上一个帖子 下一个帖子
标签: nutzwk
@IocBean(name="slogService", fields={"dao"})
public class MySlogService extends SlogService {
    private static final Log log = Logs.get();
    /**
     * 获取用户名称, 字符串类型
     */
    public static Callable<Object> GET_USER_NAME = () -> {
        String userName = TssoUtils.getCurrentUser().getUserName();
        new Throwable().printStackTrace();
        return userName;
    };
}
2 回复

看你上一个帖子的最后回复

找到了,谢谢

添加回复
请先登陆
回到顶部