The Struts architecture participated in the development of an insurance system with a Struts architecture. Among them, N is written, and the strut-config.xml file has also changed the N big. All database operations are placed in an interface layer and then all implementations are put in the implementation class of the interface. The last database realizes N big. The system is not enough to feel below:
1. All business logic is all in Action so that the business logic is dispersed into N, which is not conducive to future maintenance. It can be considered in the Bean class of the JAR package, so even if you change to EJB, just change the JAR package, reduce the modified amount.
2. The database implements too much handwritten statement, resultSet. This can be replaced by the framework of the persistence layer, reducing labor, accelerating development progress. For example, Hibernate, Ibatis, etc.