V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
ukipoi
V2EX  ›  程序员

如果把一个实体类以表格的形式显示在页面上,有哪些办法?

  •  
  •   ukipoi · May 28, 2019 · 1253 views
    This topic created in 2539 days ago, the information mentioned may be changed or developed.

    实体类的属性名作为表头
    具体值是内容
    实体类不固定
    我看了自己写的 blog 是通过Field.getName()的方式获取属性名获得的表头。
    请问这种需求还存在么?有更好的解决方式么?

    1 replies    2019-05-28 15:08:39 +08:00
    sqfphoenix
        1
    sqfphoenix  
       May 28, 2019
    自定义注解 反射获取注解值 表头可以不限定于 Field 的 name
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   6080 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 61ms · UTC 03:36 · PVG 11:36 · LAX 20:36 · JFK 23:36
    ♥ Do have faith in what you're doing.