Code Monkey home page Code Monkey logo

osc's Introduction

前言

此项目最初为毕业设计。由于想法很好,并发到了论坛,使得此小程序的用户量十分的不错。 每天的日活基本上千,因此想要把这个项目做的很好。所以我的毕生所学基本全部用到了这个项目中去了。

技术

  • Springboot启动初始化参数。可参考init包下面

  • SpringMVC拦截器。包含了三种拦截器:

    • 限流器。AccessLimitInterceptor

    • 防爬虫。IPBlockInterceptor

    • Token校验,放重放攻击。TokenInterceptor

  • AOP + 注解。TimeWatchAspect 加上此注解,可以计算接口的访问时间

  • 本地缓存。encache。用于缓存数据库。

  • Redis。可参考RedisHelperImpl实现,运用了范型。同时可参考RedisConfig这个redis配置

  • Mybatis逆向工程。可参考DAO包下面的方法。

  • 微信通知。WeChatNoticeUtils

  • 全局异常处理。ExceptionController

  • 统一返回的参数。OscResult

  • 定时任务。可参考schedule包下面的两个任务。

  • 第三方包,properties多环境配置,环境变量等等。

小程序

《开源**》动弹俱乐部

旧的项目已经不在维护。可参考controller下面的Tweet开头的内容

《知乎爬虫》

爬取知乎热门的提问的图片,放到小程序中。可参考ZhuHuSpiderController

测试

深知测试的重要性,因此尽量做到代码90%以上的全覆盖。(10%有一些测试不到,比如异常,依赖其他服务等等)

业务层Serivice


Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.