JavaEE solution configuration best practices

前端 未结 6 1877
余生分开走
余生分开走 2021-02-04 07:48

We build 3-tier enterprise solutions that typically consists of several webapp and ejbjar modules that all talk to a db and have several external integration points.

Eac

6条回答
  •  说谎
    说谎 (楼主)
    2021-02-04 08:35

    User a simple database table (Section, Key, Value). Add "Version" if you need it, and wrap the entire thing in a simple ConfigurationService class with methods like getInt(String section, String key)

    Not a lot of work, and it makes the application code very neat, and tweaking with the configuration very easy.

提交回复
热议问题