Skip to content

Tag: spring

How to use blocking queue in Spring Boot?

I am trying to use BlockingQueue inside Spring Boot. My design was like this: user submit request via a controller and controller in turn puts some objects onto a blocking queue. After that the consumer should be able to take the objects and process further. I have used Asnyc, ThreadPool and EventListener. Ho…

Dynamic search term SQL query with Spring JPA or QueryDSL

I am trying to learn QueryDSL in order to return the results of a single search term from Postgres: But I also want to search for any number of search terms, for example, say this is my list of search terms divided by the plus symbol: How can I dynamically create contains(params[0]) AND/OR contains(params[1] …