With the expansion of the integrated management software business, it is often necessary to add new interfaces to showcase the business data. This article describes how to create an interface quickly based on the original software framework.
I. Description of requirements
Add a Menu "Test module" under "System Administration", JSP name testmodel.jsp.
Second, menu configuration
1. Menu parameter setting
--Test Module menu configuration replace into Sys_category VALUES (' 56 ', ' Test module ', ' 2 ', ' 2018-10-06 16:05:04 ', ' 6 ', ' A ', ' fa-list ', ' Views/system /testmodel.jsp ', ' 001 ', NULL); REPLACE into sys_mapping VALUES (' sys_category ', ' en_US ', ' XXX ', ' Test module '); REPLACE into sys_mapping VALUES (' sys_category ', ' zh_cn ', ' Test module ', ' Test module '); REPLACE into sys_mapping VALUES (' sys_category ', ' zh_tw ', ' Test modules ', ' testing module ');--Menu authorization adminreplace into Sys_permission VA Lues (56, ' Test module ', ' 1:56:* ', ' ehome ', ' Test module ', ' * ', ' 001 ', NULL); INSERT IGNORE into ' sys_role_permission ' (' Roleid ', ' permis ' Sionid ') VALUES (' 1 ', ' 56 ');
2. Interface Configuration
(1) Under the System folder, create a new file testmodel.jsp and copy the contents of the aboutleelen.jsp to testmodel.jsp. Restart the service-side program.
(2) Login with Admin account, and under "System Management", you can see the "Test Module" menu. The content of this interface is identical to the "about" interface.
At this point, the menu configuration is complete. However, for the new interface, the controller layer code used, the service layer code, the DAO layer code, and the mapper code need to be created accordingly, not directly using the code of other modules, otherwise violate the decoupling design principle.
Comprehensive management software New menu interface steps