(JAVA back-end) WeChat applet - complete project construction (including source code, WeChat applet + java background + MySQL database) ~ do not seek perfection, just realize


1. Environment Construction

Related environment software: JDK1.8, IDEA, Gradle, MySQL, Navicat (optional, easy to view data)

Briefly describe what is used:

The compiler uses IDEA (ps: easier to use than eclipse)
Gradle for the build tool (ps: same as Maven, but with different syntax, Gradle is an upgraded build tool of Maven)
The other is the basic configuration of Java: JDK1.8
The architecture uses Spring boot microservice framework + JPA framework (ps: JPA is equivalent to encapsulating Hibernate, making it easier to use )
It also used: swagger2 (ps: used to debug the interface by yourself)


2. According to the above needs, install the environment and import the project

       Then you get to the next page:

The options in the red box, one is the default Gradle, the other is the Gradle installed by yourself, but it is recommended to choose to install it yourself.

Next, the project is opened. On the right side of IDEA, there is a Gradle menu, and you can see the startup switch when you click it (PS: Of course, you can also start it with the Main method in the Application ).


Before starting, we need to configure the connected database. My project is configured locally. Everyone's configuration may be inconsistent. The configuration file is in:


There are three environment configurations, and now "application.yml" in the code points to the "dev" configuration file.

Change your database configuration, you can start it~

Through the two startup methods mentioned above, if the console displays the following figure, it proves that the startup is successful:


The above is the main page of the project, the source code address:

Small program front-end introduction address: https://blog.csdn.net/u012888052/article/details/79623292

小程序源码地址:https://download.csdn.net/download/u012888052/10297406

java项目地址Gradle版本(代码中含数据库):https://download.csdn.net/download/u012888052/10342905


项目还需优化、完善,博客写的不完善的地方,还请多多包含~ 错误的地方,还请留言指正大笑

作者:Happy王子乐  

微信:Happy-wjl

QQ:820155406

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324618134&siteId=291194637