I am using Spring Boot for a quiz project. I am doing an ajax request for loading the questions and want to call a javascript function from inside a controller like in Ruby on Rails.
What solution offers Spring Boot to do so? Is that the right way? Or is there a better solution? I couldn't find anything.