It was simple to build my first servlet with spray-io.
But the recources referenced in the header are never found.
< head> ... < script src="javascript/jquery/jquery-1.9.1.js"/> ... < / head>
In which directory does one have to put those recsources, or how can spray be directed to look up there?
Simple question, but I could not figure out.
Many thankx
Girgl
With Spray routing, I use these directives -
pathPrefix("css") { get { getFromResourceDirectory("css") } } ~ pathPrefix("js") { get { getFromResourceDirectory("js") } } ~
"css" and "js" have to be in src/main/resources
directory
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With