Jeesite frame construction and Jilin Fast Three configuration website development environment deployment

Source: Internet
Author: User

Environmental requirements

1, Jilin fast Three website source (Q2947702644) Download

2. Eclipse IDE for Java EE Mars 2 (4.5.2) download

3. Apache Maven 3.3+ Download

4. MySql 5.7+ Download

Problems encountered during installation:

The first step: Doc in the execution of the MVN-V hint Java_home path is not set correctly, because the Java_home settings in the final addition of a semicolon, remove the semicolon after the problem resolved;

The second step: basically all the jar packages are downloaded after executing Eclipse.bat, but the Java build path→library hints that several jar packages do not exist and cannot be assigned to the correct path when compiled in eclipse. The reason is that the Ojdbc14-10.2.0.4.0.jar file is missing. The problem is solved by downloading the jar package to the web and placing it under the specified path. Although there was a problem with several jar packages before, there was no problem with this jar package after it was imported.

Sixth step: Do not select the two options as required, there is no problem, not sure what these two options are for.

The eighth step: also not set as required.

Import to eclipse

1, check out JeeSite4 source code:

clone https://gitee.com/thinkgem/jeesite4.git

2, copy the web folder, to your working directory (not including Chinese and white Space directory), renamed to your project name, such as:jeesite-demo

3, open the pom.xml file, modify the 13th line, Artifactid for your project name, such as:<artifactId>jeesite-demo</artifactId>

4. Import to Eclipse, menu File, import, then select Maven-Existing maven Projects, click the next> button, select the 2nd Step jeesite-demo folder, then click the Finish button to Successfully imported

5, at this time, eclipse will automatically load maven dependency package, the initial load will be slow (according to their own network conditions), if the project has a small fork, please open the problems window, see the specific error content until there is no error

6, the download process you can prepare the database environment

Initializing the database

1, take MySQL as an example, it is best to configure the next SQL mode, or the table may be a problem when you build

set session sql_mode=‘ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION‘;

2. Create user and authorization

create user  ' jeesite ' @ '% ' identified by  ' Jeesite '; create database jeesite DEFAULT Span class= "Hljs-keyword" >charset UTF8 collate utf8_general_ci; grant all privileges on jeesite.* to  ' jeesite ' @ '% ' identified by  ' jeesite '; privileges;            

3. Open file /src/main/resources/config/jeesite.yml configuration JDBC Connection

jdbc:   # Mysql 数据库配置  type: mysql driver: com.mysql.jdbc.Driver url: jdbc:mysql://127.0.0.1:3306/jeesite4?useSSL=true&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull username: jeesite password: jeesite testSql: SELECT 1

4. If the project you have just imported into eclipse has finished loading the jar and there is no error, you can execute the /bin/init-data.bat script to initialize the database, and first execute table xxx doesn‘t exist the error message if it is encountered, ignore it.

5, if the execution bat is unsuccessful, you can also find and two files directly in Eclipse and com.jeesite.test.InitCoreData.java com.jeesite.test.InitGenData.java Open, and then right-click on the left-hand side of the run as-------Execute unit test to initialize the database script.

Start the Tomcat service

1, is currently the spring Boot project, the internal integration of the Web container, you do not have to download tomcat for deployment, just follow the following way.

2. Open the /src/main/resources/config/application.yml file, configure your service port, port deployment path context-path , for example:

server:  port: 8080  context-path: /jeesite tomcat: uri-encoding: UTF-8

3. Find the file in Eclipse com.jeesite.modules.config.Application.java and open it, then right-click on the left side of the box to start the service by clicking Debug as, Java application.

4, note the use of debug run, to help you debug programs and improve development efficiency, such as: Modify the code inside the method, modify the View code, modify the mapper code, is not required to restart the Web service. If you change the structure of the Java class, if you add or delete attributes, methods, parameters, and so on, it is necessary to restart the service.

Jeesite frame construction and Jilin Fast Three configuration website development environment deployment

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.