• 请不要在回答技术问题时复制粘贴 AI 生成的内容
ukipoi
V2EX  ›  程序员

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

  •  
  •   ukipoi · May 28, 2019 · 1278 views
    This topic created in 2551 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   ·   2781 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 46ms · UTC 11:50 · PVG 19:50 · LAX 04:50 · JFK 07:50
    ♥ Do have faith in what you're doing.