Environment building:

1. Environment preparation

1. Development tool: Eclipse IDE (a higher version is recommended)

2.JDK version: JDK1.7

3. Project management: Maven3.1.1

2. Installation procedure

1. Install JDk1.7 and configure environment variables.

2. Install Maven: The maven installation process is unzipped (E:\myprj\jeesz-maven\apache-maven-3.1.1). For your convenience, we have provided the related installation package, which will be shared under the packaged directory.

3. Mavan configure environment variables, right click on my computer? Attribute? Advanced System Settings? Environment variables? Go to the system variable path, enter your Maven installation package path first, declare: because the previous step unzipped the specified directory, so the configuration is as follows:

E: \ myprj \ jeesz – maven \ apache maven – 3.1.1 \ bin.

We all have environment variables configured. If you are not sure, please check the relevant resources to learn more about Maven.

4. Open CMD and press: MVN — version. If the following output is displayed, you have successfully installed Maven




MVN is a command of Maven, mvn-version is to check the version information, MY operating system is 64-bit WIN7, installed maven 3.1.1, if you can print the above information, it means that Maven3 has been installed on your computer.

5. Create workspace (select J2EE view after entering)




6. Set the Eclipse encoding to UTF-8

On the Eclipse toolbar, select Window Prefrences General Workspace




7. Configure the JRE environment (previously you need to install JDK 1.7, here use the installed JDK to configure) :

Select Window Prefrences Java Installed JREs Edit Select your local JDK installation path Finished OK




8. Remove JavaScript verification and other information (since js, CSS, XML and other files with different formats are widely used in the project, some verification information is temporarily removed in consideration of the execution time of each compilation)

Validation “Suspend all Validators” OK




9. Modify the maven settings. XML configuration file as follows: E: myprj\jeesz-maven\apache-maven-3.1.1\conf

Add E:/myprj/jeesz-maven/apache-maven-3.1.1/repository

Modify the central library path (if the network is normal, you can download the missing JAR package from the remote central library, I use Oschina central library here, if there is a problem with the network,

You can use your company’s private server to load relevant JAR packages). Considering that sometimes the packages can not be downloaded, I also share the jar packages required by the project with you, and put them all in the following directory:

E: / myprj/jeesz – maven/apache maven – 3.1.1 / repository

10. In Eclipse, configure the maven installation directory and the local library directory to load the Setting file







11. Import Maven project

File Import Existing Maven Projects next step




Select your local Maven project (jeesz-Project root) and click OK




When all the projects are loaded, click Finish




Note: this import process will take some time, because I have a local connection to the network, so I will download all the JAR packages required by the project from the remote central library, please be patient.

You don’t need to wait long if you’re using a local library, and you won’t have to wait long if you’re using a company private server.

Imported project information




The package for the local library has been downloaded




12. After downloading all jars, update the Maven project:

1) Select all projects 2) right-click Maven “Update Project”, select All “Select Associated Items” and click OK




If the project still has a red X error, it must be missing the relevant JAR package. You can use:

Window showView Problem View exception information in the problem Window




If the JAR package is missing, you can copy the JAR package we provide directly to your specified directory

The next step can be carried out only after all errors in the project are cleared (as shown in the picture below).

Select all projects and clean them: Project clean




13. Try compiling and packaging the project to see if there is a problem:

Note: Normally we package compilations against the root project because all dependencies are configured there. Jeesz-project “Run As” Maven build…




Enter clean Install -x in the dialog box that pops up and check Skip Tests, Run…

Note: If you are not familiar with maven commands, you may want to look them up

Here’s a quick explanation: Clean install -x means to clean up all projects and pack jars into the local library, where -x represents the output information. (Generally, you can use -x to locate problems with Maven.)




At this point the console starts compiling and loading all packages. This process is a bit long, please be patient




The following results indicate that the project is normal.




The generated packages (including war and JAR) are stored in the target folder. The screenshot below shows the example of jeesz-web-admin.




14.Tomcat release jeesz project (release process is not detailed, everyone will do) :

The following is an introduction to the different projects:

Jeesz-web-admin: Can be deployed independently (background management platform)

Jeesz-web-service: Can be independently deployed (REST service platform, customers can expand REST services according to their own business, which has written related instances)

Dubbo service is provided by Jeesz-service-bookmark and Jeesz-service-Task. Dubbo service is provided by Jeesz-service-Bookmark and Jeesz-service-Task. Dubbo service is provided by Jeesz-service-Task and jeesz-service-Task. It can also be deployed separately.)

Jeesz-web-bookmark and Jeesz-Web-Task are Dubbo consumer platforms. The exposed service interfaces of Dubbo are jeesz-facade – Bookmark and Jeesz-FA? Ade-task (this describes how the Dubbo client invokes the Dubbo service provider through favorites and to-do items only. The client can populate the Dubbo consumer in different projects with a few simple configurations.)

Deployment conditions:

1) Execute mysql database script: jeesz.sql

You can refer to the JDBC configuration items of the database




2) Jeesz-web-admin can be deployed directly by Tomcat

Login username and password: jeesz/admin

3) Jeesz-web-service: can be independently deployed by Tomcat

Login username and password: jeesz/admin

The following conditions are required to deploy a Dubbo-related project

> Install dubbo management platform, decompress war package to Tomcat, replace the directory with the root directory, and directly start Tomcat (the development environment provides Windows)




>Zookeeper registry installation, I provide zooKeeper-3.4.5 version (the development environment provides Windows), go to the installation directory to start




Note: I have provided relevant programs, in which dubbo management and control platform needs to be independently deployed on Tomcat server, which does not require high availability configuration and can be started directly by starting Tomcat. The Zookeeper registry has related commands that you can run and start directly. If you want to deploy on a Linux system, you can see the documentation we provide

5) After the Dubbo control console and registry are ready to start, the Jeesz-service-Bookmark and Jeesz-service-Task projects can be deployed to Tomat at the same time (independently) as the Dubbo service provider

6) Log in dubbo Control Console to check relevant service information, and you can see that the service you published has been controlled by the Control Console:

http://localhost:8080/root

This is accessible directly by address because the package name was changed to Root

User name Password: root/root

7) Branch deployment of Jeesz-Web-Bookmark, Jeesz-Web-Task Dubbo consumer projects to let developers know how the service is invoked.

Here is the installation process of the whole project, please developers after installing the project into development, all business directly servitization, because the project is based on driver development, so design your table, Through the Gen code generation module of jeesz-Web-admin project, all the controller, Service, DAO, XML, JSP interfaces are automatically generated, and the business is written and processed directly. We will continue to improve the document in the near future, please pay attention to it.

Welcome to study related technology together

Willing to understand the framework technology or source code of friends directly ask to exchange technology: 2042849237

More detailed source code reference source: minglisoft.cn/technology