Project introduction for WeChat public account development

PHPz
Release: 2018-05-28 11:35:51
Original
3543 people have browsed it

Welcome to leave a message, forward,

The project source code reference address click me click me--Welcome Start

This article will learn:
1, Eclipse、Intellij IDEA clone project
2、How to activate Intellij IDEA
3. Maven downloadInstallationConfiguration
4.weixin_guide How to start

How to import the project into Eclipse

The steps are as follows:Navigationbar Select<a href="http://www.php.cn/wiki/1313.html" target="_blank">File</a>>Import...><a href="http://www.php.cn/wiki/1544.html" target="_blank">Git</a>>Projects from Git>Clone URL>URI Enter the address of the project to be cloned and click Next>Select the project branch version Click Next>Wait for the background clone to complete>SelectImport as general project >Finally convert the project into a Maven project (this process requires downloading the jar from the Maven central warehouse. If it fails now, it is recommended to install and configure a maven locally. The installation reference address)
Provide a Everyone who has used the domestic Alibaba warehouse

## knows how miserable it is in China. Fortunately, there are better images available, and the speed will be increased by 100 times as soon as possible. //maven.aliyun.com/nexus/#view-repositories;public~browsestorage


Configure the sub-nodes of mirrors in the maven

set

tings.xml file , add the following mirror

The detailed operation screenshot is as follows:

Project introduction for WeChat public account development
Eclipse import project 01.png

Project introduction for WeChat public account development
Eclipse import project 02.png

Project introduction for WeChat public account development
Eclipse import project 03.png

Project introduction for WeChat public account development
Eclipse import project 04.png

Project introduction for WeChat public account development##Eclipse import project 05.png

How to import the project into Intellij IDEA

Send a

Intellij IDEA

Activation method reference address

The steps are as follows:

Project introduction for WeChat public account developmentIDEA import Project 01.png

Project introduction for WeChat public account developmentIDEA Import Project 02.png

##IDEA Import Project 03 .pngProject introduction for WeChat public account development

IDEA Import Project 04.pngProject introduction for WeChat public account development

##IDEA Import Project 05.png

Project introduction for WeChat public account development
Of course, if you are familiar with Git commands, you can also use the command to import the project

Run the project

Eclipse:

Maven install Install and compile the project


Eclipse Run project 02.png

Project introduction for WeChat public account developmentProject
Configuration file


Eclipse Run Project 02.png

Project introduction for WeChat public account developmentSet the startup port and start


Eclipse Run Project 03.png

Project introduction for WeChat public account developmentObserve the log

If you are testing WeChat without using a database, you can comment the code in the following method:

/**
     * 配置插件
     */
    public void configPlugin(Plugins me) {
        /* C3p0Plugin c3p0Plugin = new C3p0Plugin(PropKit.get("jdbcUrl"), PropKit.get("user"), PropKit.get("password").trim());
         me.add(c3p0Plugin);

        // 配置ActiveRecord插件
        ActiveRecordPlugin arp = new ActiveRecordPlugin(c3p0Plugin);
        arp.addMapping("course", Course.class);
        arp.addMapping("orders", Order.class);
        arp.addMapping("users","id", Users.class);
        arp.addMapping("Tuser", TUser.class);
        arp.addMapping("stock", Stock.class);
        arp.addMapping("idea", Idea.class);
        arp.setShowSql(true);
        me.add(arp);

        // ehcahce插件配置
        me.add(new EhCachePlugin());


        SchedulerPlugin sp = new SchedulerPlugin("job.properties");
        me.add(sp);*/
    }
Copy after login

Eclipse Run Project 04.png

Intellij IDEA:

Start the project is to use the Maven plug-in Jetty. The detailed steps are as follows:

Project introduction for WeChat public account development

IDEA run Project 01.png

Project introduction for WeChat public account development

IDEA Run Project 02.png

The above is the detailed content of Project introduction for WeChat public account development. For more information, please follow other related articles on the PHP Chinese website!

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!