Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

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

2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report