G
G
goshan_p2016-02-11 20:53:23
Java
goshan_p, 2016-02-11 20:53:23

Spring REST, how to provide access to static resources?

Let's say we have a REST application in Spring. How to give the client static files (HTML, CSS, JS)? Is it necessary to set up a proxy server? If so, how to restrict access to HTML pages?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
sim3x, 2016-02-11
@sim3x

location / {
   root /path/to/static;
}

location /api/v1 {
   # do connection to spring
}

A
aol-nnov, 2016-02-11
@aol-nnov

google://spring mvc static resources
google://spring boot static resources
I hope you choose? ;)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question