Giter VIP home page Giter VIP logo

studydemo's Introduction

com.example.annotiondemo

@interface注解demo

description: 主要就是为了搞清楚@interface这个注解的实际应用和一般应用场景

test文件夹是测试注解属性的定义和属性值的获取

--AnnotationTest是测试获取注解值的测试类

--ColorEnum是枚举类

--MetaAnnotation是元注解类(注解的注解)

demo文件夹是一般应用场景

--checkInterface 自定义注解类

--checkTest是测试类

--MyMethod是模拟自己写的方法类

com.example.innerclassdemo

常用的实用内部类来生成外部类对象并赋值方法

threaddemo

模拟多线程抢票

com.example.restdemo

简单的restful接口demo以及各种插件集成

com.example.invocation

java代理模式 1.JDK动态代理是实现了被代理对象的接口,HumapProxy.java。cglib是继承了被代理对象。MyInterceptor.java 2.JDK和Cglib都是在运行期生成字节码,JDK是直接写Class字节码,Cglib使用ASM框架写Class字节码,Cglib代理实现更复杂,生成代理类比JDK效率低。 3.JDK调用代理方法,是通过反射机制调用,Cglib是通过FastClass机制直接调用方法,Cglib执行效率更高。

com.example.rabbitmq springboot集成rabbitmq并简单实现三种模式的使用示例

studydemo's People

Contributors

huiyunfei avatar

Watchers

James Cloos 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.