question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Integrate to Spring Boot with Spring Security

See original GitHub issue

Do you ever try to integrate this to Spring Boot which included Spring Security,

I try to do this got exception as below:

[2017-03-08 22:20:21.129][http-nio-8080-exec-1][ERROR][o.a.c.c.C.[.[.[.[dispatcherServlet]] Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is java.lang.ClassCastException: org.springframework.web.servlet.mvc.ParameterizableViewController cannot be cast to org.springframework.web.method.HandlerMethod] with root cause
java.lang.ClassCastException: org.springframework.web.servlet.mvc.ParameterizableViewController cannot be cast to org.springframework.web.method.HandlerMethod
	at com.linecorp.bot.spring.boot.interceptor.LineBotServerInterceptor.preHandle(LineBotServerInterceptor.java:49)
	at org.springframework.web.servlet.HandlerExecutionChain.applyPreHandle(HandlerExecutionChain.java:134)
	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:958)
	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:897)
	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)
	at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:861)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
TommyYehCoolcommented, Mar 14, 2017

I think that I missed the setting, thanks for your help!

0reactions
kazuki-macommented, Mar 14, 2017

You are welcome~

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting Started | Securing a Web Application - Spring
Before you can apply security to a web application, you need a web application to secure. This section walks you through creating a...
Read more >
Spring Security for Spring Boot Integration Tests | Baeldung
The seamless integration of Spring Boot with Spring Security makes it simple to test components that interact with a security layer.
Read more >
Spring Boot-Security Simple Example - JavaInUse
Lets customize the security configuration by writing our own authorization and authentication.
Read more >
Spring Boot - Securing Web Applications - Tutorialspoint
If a Spring Boot Security dependency is added on the classpath, Spring Boot application automatically requires the Basic Authentication for all HTTP ...
Read more >
Secure a Spring Boot App With Spring Security and ... - DZone
Secure a Spring Boot App With Spring Security and PreAuthorize · Differentiate Between Spring Security's @PreAuthorize and HttpSecurity.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found