In the past, when I was in school, I thought that every Java Development Company had to build an SSH framework every time it was working on a project. After work, I found that every company had its own framework, if it weren't for SSH or SSI-based encapsulation that meets your company's needs, and as your company's framework is applied to various systems, the framework will become more and more mature, this will increase the company's development efficiency.
Based on the frameworks of several companies that I have been involved in, I found that to achieve efficient development, the frameworks of each company should have the following features:
1. Flexible paging.
The paging function is a required function in each project. However, this function is time-consuming and laborious. If you implement this function in the framework, the repetitive work of paging will be greatly reduced in each project.
2. You can easily upload and download files and import and export data.
File Upload, download, data import, and export may also be encountered in large-Department projects. However, these two functions may differ in implementation due to different projects, what we need to do in the framework is to extract common things and define them as abstract things so that different projects and different needs can easily implement this function.
3. Convenient transaction management functions.
Transaction Management is generally defined at the business logic layer. In our framework, simple or even zero configuration should be implemented for the transaction of the business logic object. In the two frameworks that I have touched on, a simple configuration must be added to the transaction management configuration file when a business logic object is configured, the other is that the framework implements several basic business logic objects and configures transaction management for these objects, the business logic objects defined during development are inherited from these basic objects, saving the configuration of transaction management.
4. Has an exception handling framework.
Basically, exception handling frameworks defined by the company's framework can be used for exception handling of each project, and the exception handling requirements are not the same because of different projects.
5. Have your own set of page components.
Project development is developed by a team. To ensure that the interface style of each developer is consistent, the best way is to define a set of company's own pages. In this way, both development efficiency and interface unification can be ensured. Freemark is a good choice. It supports custom macros. In the company framework, you can define a set of page group macros for developers to call.
6. Has a data verification framework.
Each project may use a large number of regular expressions for data verification. Therefore, it is a good choice to encapsulate these regular expressions in the company's framework and provide a unified call interface.
7. simple menu configuration.
A good framework should provide simple configuration and management of menus and level-2 menus. Or the two frameworks mentioned above. One is to manage the level-1 menu, level-2 menu, and level-3 menu in the system through the xml configuration file, however, to implement the same requirements in another framework, you need to perform tedious configuration in the database. Obviously, the implementation scheme of the first framework is more desirable and efficient.