In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail the example analysis of JEESZ module development for you. The editor thinks it is very practical, so I share it for you as a reference. I hope you can get something after reading this article.
1. Create a table
1.1.Create e-commerce system configuration jeesz_eb_global_config table
SET FOREIGN_KEY_CHECKS=0
-- Table structure for `jeesz_eb_global_ config`
DROP TABLE IF EXISTS `jeesz_eb_global_ config`
CREATE TABLE `jeesz_eb_global_ config` (
`id`varchar (64) NOT NULL COMMENT 'number'
`context_ path`varchar (20) DEFAULT NULL COMMENT 'deployment path'
`port`int (11) DEFAULT NULL COMMENT 'port number'
`treaty`longtext COMMENT 'user agreement'
`activescore` int (11) NOT NULL COMMENT 'activate credits'
The picture of `def_ img` varchar (255) NOT NULL DEFAULT'/ r COMMENT is not saved.
Default picture at the time'
`create_ by` varchar (64) NOT NULL COMMENT 'creator'
`create_ date`datetime NOT NULL COMMENT 'creation time'
`update_ by` varchar (64) NOT NULL COMMENT 'UPDAT'
`update_ date`datetime NOT NULL COMMENT 'update time'
`remarks`varchar (255) DEFAULT NULL COMMENT 'remarks'
`del_ delete `char (1) NOT NULL DEFAULT'0' COMMENT 'delete tag'
PRIMARY KEY (`id`)
KEY `jeesz_eb_global_ config` (`del_ config`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='jeesz e-commerce system configuration table'
-- Records of jeesz_eb_global_config
Note:
1. Modification of table name
2. `create_ by`, `create_ date`, `update_ by`, `update_ date`, `remarks` and `del_ play` are indispensable. Do not ignore these fields when creating tables.
1.2. Add business table configuration for driving scheme
Click next to configure the business table (mainly for sql query conditions and page elements)
Finally, save it.
1.3. Add the generation scheme
Save and generate code (my code is generated in the D:/src directory)
2. Create a module project
2.1.Create module projects according to your own business (I'll take EB as an example)
2.2.Modification and configuration of module project
Because the maven project generated by the tool lacks some source files because of the integrity and consistency of the project, you need to create the following manually:
Click ok to adjust the order of the newly created file directories:
The adjusted result:
Modify the pom.xml file of the module project jeesz-core-eb:
The details are as follows:
Com.alibaba
Druid
${druid.version}
Mysql
Mysql-connector-java
${mysql.driver.version}
Runtime
Com.oracle
Ojdbc14
${oracle.driver.version}
Runtime
Net.sourceforge.jtds
Jtds
${mssql.driver.version}
Runtime
Org.aspectj
Aspectjrt
1.7.4
Org.aspectj
Aspectjweaver
1.7.4
Cglib
Cglib
3.1
Com.sml.sz
Jeesz-config
Com.sml.sz
Jeesz-framework
Copy the raw code to the specified directory com.sml.sz.eb
Modify jeesz-project 's pom.xml file to add module dependencies
The code is as follows
Com.sml.sz
Jeesz-core-eb
${project.version}
Modify jeesz-web-admin 's pom.xml file to add module dependencies
The code is as follows
Com.sml.sz
Jeesz-core-eb
Copy the generated controller file into the web project
Copy the generated interface file into the web project:
3. Create a new menu and configure permissions
For specific configuration, please see my favorite configuration.
Feature screenshot:
This is the end of this article on "sample Analysis of JEESZ Module Development". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.