Skip to content

This is a simple demo to integrate ByteBuddy in Spring as a FactoryBean to wrap method invocation and log timings

License

Notifications You must be signed in to change notification settings

anegrin/bytebuddy-spring

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ByteBuddy + Spring Boot demo

This is a simple demo to integrate ByteBuddy in Spring as a FactoryBean to wrap method invocation and log timings

Build

mvn clean package

Run

mvn spring-boot:run

Use

build, run and the open your browser on http://127.0.0.1:8080 you shoud see a message like this:

got hello 309 from an instanceof com.sixdegreeshq.service.HelloServiceSubclass@713845ff

and in the log you should see

invocation of get in 309 ms

About

This is a simple demo to integrate ByteBuddy in Spring as a FactoryBean to wrap method invocation and log timings

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages