code tips

  • 对bean操作,有现成的工具类,apache的common-beanutils包

    1
    2
    3
    4
    5
    <dependency>
    <groupId>commons-beanutils</groupId>
    <artifactId>commons-beanutils</artifactId>
    <version>1.9.2</version>
    </dependency>
  • 对xml操作,有现成的工具类,dome4j很好用

    1
    2
    3
    4
    5
    <dependency>
    <groupId>dom4j</groupId>
    <artifactId>dom4j</artifactId>
    <version>1.6.1</version>
    </dependency>