gothinkster / kotlin-spring-realworld-example-app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Serving Static Resources

napperley opened this issue · comments

Does the back-end have a designated place for serving up static resources (eg JS, CSS, and HTML files)?

@napperley It's usually from the src/main/resources directory
See docs for more details, but it can be configured to be elsewhere. https://docs.spring.io/spring-boot/docs/current-SNAPSHOT/reference/htmlsingle/#boot-features-spring-mvc-static-content
Note - these are spring boot 2.x docs

In that case it should be mentioned in the documentation where static resources reside since it isn't obvious.

It's classic Spring.

Closed as answered.