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.
callingjavascript butreturningit. If the Javascript is static you can put it into the resources folder of your project, Boot will happily provide that file. If it is dynamic you can have any controller output any string / text. So you can even return Javascript.