Skip to content

Tag: spring-boot

flyway schema giving IllegalArgumentException

On running flyway schema I’m receiving this exception.using Java 8 with spring boot. Flyway is not able to initialize. Answer Check the flyway_schema_history table, there you will see that you have an entry with installed_rank value set to 0, delete the row and run your application again. This will sort…

How to get only one role from a set of roles

I’m trying to implement a simple spring security project where basically I have user and role entities. I have a set of roles “ADMIN” and “USER”. Now I want to assign only “USER” role along with creating a new user. I have tried to use List and collections with the sa…

How to apply the PathPatternParser introduced in Spring 5?

I want to create a GET request that takes a filepath as a path variable. As described in the Spring documentation found here, this should be possible by using the following: /resources/{*path}. I am using Spring Boot 2.1.2 which uses Spring 5. However when I set up my controller method like this, the request …