Relative Content

Tag Archive for spring-bootspring-security

Error while converting string to class on the frontend results in 500 error

I’m encountering an issue where a 500 error is displayed on the web when I try to design a feature for my app related to “taco” functionality. I suspect the issue might be related to converting a string to a class on the frontend. This feature is important for security, but I’m not sure how to resolve the error.Has anyone experienced something similar or can provide guidance on how to fix this?

@RestControlerAdvice not working in spring-boot application

I have a spring boot application and I am working to configure a global exception handler. Based on the latest spring docs I am using @RestControllerAdvice to try and handle the exceptions. Here is an example of my globalExceptionHandler:

Spring Security3 hasRole not effect444

I was try write demo about spring security3, and come with problem that hasRole() is not effect, here is part of code, each request will be transfer to exceptionHandling().