lombok 封裝的對象屬性在 freemarker 中無法顯示的問題

private Long lId;
private Integer nEnable;

lombok 生成的get方法 getLId()
freemarker 使用的get方法 getlId()

解決方法:在對象中使用freemarker的get方法
public Long getlId(){
        return lId;
    }

    public Long getLId(){
        return lId;
    }

    public Integer getnEnable(){
        return nEnable;
    }

    public Integer getNEnable(){
        return nEnable;
    }

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章