Open Verdoso opened 6 years ago
Just so you know, updating spring-boot-starter-parent to 1.5.9, made the issue go away. Even though then it fails with another error:
Caused by: org.springframework.beans.factory.BeanNotOfRequiredTypeException: Bean named 'corsFilter' is expected to be of type 'org.springframework.web.filter.CorsFilter' but was actually of type 'org.springframework.boot.web.servlet.FilterRegistrationBean'
At least I can move a bit further with my app.
O_o
Did you named the filter name as corsFilter? if so, you can tried to change the function name from corsFilter to simpleCorsFilter. It worths a shot..
I was not using the cors filter, so it was not an issue for me and I did not try to fix it in springboot-jwt. In the end I'm not using JWT at all so, I had to deal with other issues.
Hi there, I've tried applying what it's explained in the blog to my simple project and that's the error I got when I tried to start the application. I then tried with this project and I just download and run "mvn clean install" and I get the same error. Inside eclipse and using the console, the same error:
I checked and the class is indeed there, inside the dependencies....
Could this be related to Maven or JDK version? Apache Maven 3.2.2 (45f7c06d68e745d05611f7fd14efb6594181933e; 2014-06-17T15:51:42+02:00) Java version: 1.8.0_74, vendor: Oracle Corporation
So weird...
Thanks!