-
Notifications
You must be signed in to change notification settings - Fork 40.4k
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
devtools and spring-session problem #4649
Comments
I guess it duplicates #3805 - can you confirm this is the same stacktrace? |
@snicoll I think this is a different problem. The comment in |
for some reason (sub-text: lack of coffee), I missed the comment :( Thank you |
in spring-security-web-4.0.3.RELEASE-sources.jar!/org/springframework/security/web/method/annotation/AuthenticationPrincipalArgumentResolver.java:115 parameter.getParameterType().isAssignableFrom(principal.getClass()) return false,because parameter.getParameterType() loaded by RestartClassLoader and principal.getClass() is Launcher$AppClassLoader ,so its the same problem,tks |
@xia5271 There's also some similarity to #3316. Please see the discussion in that issue and this section of the documentation for some further information. |
now i have a problem and i create a simple project https://github.com/xia5271/demo-devtools-restart ,when i use spring-boot-devtools and spring-session at the same time,@AuthenticationPrincipal cant work(https://github.com/xia5271/demo-devtools-restart/blob/master/src/main/java/com/github/xia5271/devtools/security/LoginController.java#L18 ),i track problem in spring-security-web-4.0.3.RELEASE-sources.jar!/org/springframework/security/web/method/annotation/AuthenticationPrincipalArgumentResolver.java:115 ,how can i fix it
The text was updated successfully, but these errors were encountered: