当前位置:网站首页>Imitation B station web, app, background

Imitation B station web, app, background

2022-06-21 14:04:00 Funny 2233

Experience address

web End :http://82.157.168.147/
AnZhuoDuan :http://82.157.168.147:7000/bilibili/phone/app.html

web End

Details address :https://blog.csdn.net/weixin_43974265/article/details/122156697

AnZhuoDuan

 Insert picture description here

backstage

  • Use MyBatis The custom object factory supports annotation default value processing to meet the following special default value requirements ( Favorite default cover ), To write MyBatis The plug-in listens to the event that the object encapsulation property is completed , Distributed to processors that support processing through generics
  • Encapsulated crawler API Mapping requests using interface methods , Annotation identification information , Support for json,xml Automatically encapsulate as objects , Support path .[] expression , Support method parameter filling to path , Type converter , Customize the request method , Encapsulated in the SpringBootStart, Support use GUI The tool automatically generates the corresponding entity class and its corresponding annotation according to the request selection field , It is mainly used to crawl the live broadcast information. There is too little live broadcast information , Or crawling B Station video as the initial resource
  • Use database annotations for entity classes ,Service,Controller,Mapper And so on , Support entity class field and object storage binding , increase , modify , Delete and modify the object storage
  • In order to solve the problem that the new version of Google browser cannot be used session problem , Customize BSession Used to store session information , front end , The Android end supports customization by using interceptors session
  • Use Spring The event mechanism is decoupled , Listen to the specified method call through the method call stack to realize the history , We'll see if we've seen , Daily rewards, etc ( You can use the message middle key to replace )
  • adopt Redis Frequently changing fields as part of cache optimization ( For example, the number of plays ), After the listening object property is encapsulated, the event will Redis Cache in plus , Listen for object update events ( Updates to the and hot fields are written to Redis Will not be updated to the database ) eliminate Redis The corresponding cache will also use the scheduled task to Redis Cache writes to database
  • give the thumbs-up , Focus on optimization processing , Use Redis set Storage does not immediately modify the database , It is convenient to query whether to pay attention to , Please wait , Synchronize data to the database every minute ( Support querying recent likes , Coin video )
  • Sweep the login code , SMS login , Password login multiple login channels , Custom sliding verification code component
  • Use websocket Realize multi terminal real-time bullet screen , Number of viewers
  • Custom method parameter type parser
  • For output agents , Collect log information and send it by email every day

Code cloud open source address

AnZhuoDuan :https://gitee.com/shaokang123/bilibili-android
Java Back end :https://gitee.com/shaokang123/bilibili-web
web front end : Not developed by me. Please find https://blog.csdn.net/weixin_43974265?spm=1001.2014.3001.5509

TODO

Because the development time is short , Some functions have not been realized , It will be implemented later
Use the android FragmentPagerAdapter The requested data is not lazy loaded , It is easy to impact the background database
Finally send BiliBiliAPP Resource unpacking file
https://test-1302807021.cos.ap-nanjing.myqcloud.com/BiliBiliApp%E7%B4%A0%E6%9D%90%E8%A7%A3%E5%8C%85%E8%B5%84%E6%BA%90.zip

原网站

版权声明
本文为[Funny 2233]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202221430106066.html