Giter VIP home page Giter VIP logo

spg-code's Introduction

spg-code

MyCommon项目

个人工具包

工具包中主要含个人平时累积工具类,仅供学习交流

包名 类名 功能说明
collectionutil MyListUtil 集合截取,从指定位置到结束位置,如果结束位置大于集合长度,则已集合长度作为结束位置
collectionutil MyMapUtil Map排序、截取操作
collectionutil ValueComparableMap 自定义map,存入此map中是数据会按value值进行排序存放,[升序]
common CommonUtil 获取请求方IP,URL短码生成
dateutil N/A 日期工具
enumutil N/A 枚举工具
httputil N/A http工具
jsonutil N/A json工具
logutil N/A 日志工具
mapperutil N/A mybatis中mapper工具类,公共CRUD接口
md5 N/A MD5工具
myexception N/A 自定义异常
page N/A 分页工具
pojo N/A pojo工具
strutil N/A 字符串工具
threadpool N/A 线程池工具

apidoc项目

使用swagger实现api接口的示例。

configcenter项目

个人实验项目。

dubbo项目

淘宝开源RPC框架。

spg-common项目

与上面MyCommon基本一致。

swagger-ui项目

开源swaggerapi项目。

countView项目

简易埋点系统,项目使用Redis和SpringMVC框架,实现网站PV量、按钮点击量、链接点击量、用户活跃量、用户IP分布等的统计。

###统计项说明

项目主要统计功能包含:

  1. 统计网站PV量。
  2. 统计页面按钮点击量。
  3. 统计页面链接等的点击量。
  4. 统计每天活跃用户数。
  5. 统计每天活跃用户IP分布情况等。

###项目使用步骤说明:

  1. 将本项目中commoncount.js拷贝到你需要做埋点的项目某个目录中。
  2. 修改commoncount.js中baseUrl值,修改为你项目路径。
  3. 将commoncount.js引入引入你需要做埋点的页面。
  4. 再给需要统计的按钮、链接等的onclick事件上添加相应统计方法,pv统计加在onload上即可。

###commoncount.js功能说明

  1. addPV(englishName);统计一次PV。
  2. addBtnClick(englishName);某个按钮被点击事件。
  3. addLinkClick(englishName);某个链接被点击事件。
  4. addUserActive();一次用户活跃,如用户登录。
  5. addUserIp();分析用户登录IP分布。

###特殊说明

  • 用户IP分析使用taobaoIP进行分析,淘宝IP对请求量控制为10QPS;
  • 如果需要使用其他方式分析IP,可自行修改代码;

spg-code's People

Contributors

itboyspg avatar

Watchers

 avatar  avatar

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.