fix spring_web aop no such method found exception#376
Merged
brian-brazil merged 5 commits intoprometheus:masterfrom Apr 23, 2018
Merged
fix spring_web aop no such method found exception#376brian-brazil merged 5 commits intoprometheus:masterfrom
brian-brazil merged 5 commits intoprometheus:masterfrom
Conversation
Contributor
|
Can you add a unittest for this? |
Author
|
@brian-brazil ok,wait a moment ,i think i should use a proxy class to test this cause in cglib mode,the method exist in parent class,not the target class |
Author
|
unit test has been added. |
Contributor
|
@andrewstuart Would you mind taking a look at this? |
Contributor
|
Whoops, just saw this notification. Sure thing! |
andrewstuart
approved these changes
Apr 20, 2018
Contributor
andrewstuart
left a comment
There was a problem hiding this comment.
Yeah, this looks good to me, and seems like it should handle the use case better.
Contributor
|
Great. Can you add the DCO please? |
added 5 commits
April 21, 2018 15:24
Signed-off-by: candyleer <[email protected]>
Signed-off-by: candyleer <[email protected]>
Signed-off-by: candyleer <[email protected]>
Signed-off-by: candyleer <[email protected]>
Signed-off-by: candyleer <[email protected]>
c18646b to
9ac1179
Compare
Author
|
@brian-brazil DCO has been added for all histories commit and check passed |
Contributor
|
Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
when i follow the instruction.i failed to make the metrics data ,cause:
after enhanced by
cglib,it seems that cannot find the method in classio.github.candyleer.prometheusdemo.PrometheusDemoApplication$$EnhancerBySpringCGLIB$$5772d178so i fixed by fetch the original class which mean
io.github.candyleer.prometheusdemo.PrometheusDemoApplicationthroughMethod method = ReflectionUtils.findMethod(pjp.getTarget().getClass(), name, parameterTypes);it works.