Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

What is the development method of Netty simulation Wechat communication mobile terminal?

Shulou Source: shulou.com Published: 2022-06-01 04:49:19 09月26日 Update

The main content of this article is to explain "what is the development method of Netty analog Wechat communication mobile terminal", interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Next let the editor to take you to learn "Netty simulation Wechat communication mobile development method is what" it!

After modification

Effect after online debugging

Here, I reported an error here, other pages can be opened, but found that the page can not be opened, after debugging, found that the name is caused by a space, and finally achieve 4 page switching, with the help of AirDroid to monitor the page

At the end of the last article here, you can see what the page wants to show. Just render the page.

Next, connect to the background for data exchange.

New table

They are information table, send request form, friend table, user table.

CREATE TABLE `users` (

`id`varchar (64) NOT NULL COMMENT 'id'

`username`varchar (20) DEFAULT NULL COMMENT 'username'

`passwd` varchar (64) DEFAULT NULL COMMENT 'user password'

`face_ image`varchar (255) DEFAULT NULL COMMENT 'avatar'

`face_image_ big`varchar (255) DEFAULT NULL COMMENT 'big avatar'

`nick_ name`varchar (20) DEFAULT NULL COMMENT 'nickname'

`qrcode` varchar (255) DEFAULT NULL COMMENT 'login QR code'

`cid`varchar (64) DEFAULT NULL COMMENT 'device id'

PRIMARY KEY (`id`)

) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT=' user Table'

CREATE TABLE `my_ Friends` (

`id`varchar (64) NOT NULL

`my_user_ id` varchar (64) DEFAULT NULL

`my_friend_user_ id` varchar (64) DEFAULT NULL

PRIMARY KEY (`id`)

) ENGINE=InnoDB DEFAULT CHARSET=utf8

CREATE TABLE `friends_ request` (

`id`varchar (64) NOT NULL

`send_user_ id` varchar (64) DEFAULT NULL

`accept_user_ id` varchar (64) DEFAULT NULL

`request_date_ time`datetime DEFAULT NULL

PRIMARY KEY (`id`)

) ENGINE=InnoDB DEFAULT CHARSET=utf8

CREATE TABLE `chart_ msg` (

`id`varchar (64) NOT NULL

`send_user_ id` varchar (64) DEFAULT NULL

`accept_user_ id` varchar (64) DEFAULT NULL

`msg` varchar (255) DEFAULT NULL

`sign_ room`int (1) DEFAULT NULL

`create_ time`datetime DEFAULT NULL

PRIMARY KEY (`id`)

) ENGINE=InnoDB DEFAULT CHARSET=utf8

When springboot and netty are fused in the project, the entity classes and mapper in the data are generated in reverse, but every time a new table is created, all the table files are regenerated, so I directly use idea to generate entity classes.

First of all, create a new project,SpringBoot2.x version, and here you can generate it directly with idea.

At this point, I believe that everyone on the "Netty simulation Wechat communication mobile development method is what" have a deeper understanding, might as well to the actual operation of it! Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Tags: Pages methods users communications development mobile generation content entities friends user tables learning practical deeper and then the first part things information interests names Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology Linux Apple Shulou Information macOS