Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue on RoutingPathResolver #2

Open
junbeomlee opened this issue Mar 12, 2017 · 3 comments
Open

Issue on RoutingPathResolver #2

junbeomlee opened this issue Mar 12, 2017 · 3 comments

Comments

@junbeomlee
Copy link

In my case RoutingPathResolver can not find request mapping methods in any controllers whose name is *controller. But when i change the name of controller ex)UserController -> UserControllerd
It works.
Also when i tested with new project which has UserController, it works. I can not see any difference between new projects and my projects.

Is there any chances other class or configuration can impact your library?

@junbeomlee
Copy link
Author

I Found the answer it caused by the spring aop...
My aop was settings for *Controller class so dynamic proxy object was made.. that was the problem

@wnameless
Copy link
Owner

Did you solve this problem?

@junbeomlee
Copy link
Author

Class<?> beanClass = null;
if (bean.getClass().getCanonicalName().contains("$$EnhancerBySpring")) {
if (bean instanceof Advised) {
beanClass = ((Advised) bean).getTargetClass();
}
} else {
beanClass = bean.getClass();
}

i just added some codes on your pathresolver library

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants