I have created a spring boot application and I am trying to get images from external folder on disk, here is my code:
But when I launch the application, I got this error message:
> o.s.web.servlet.PageNotFound: No mapping for GET /myapp/index
> o.s.b.w.servlet.support.ErrorPageFilter : Cannot forward to error
> page for request [/] as the response has already been committed.
Even if I remove @EnableWebMvc and I extend WebMvcConfigurationSupport directly, I am getting the same issue.
1. Why am I getting this issue?
2. Is it possible to get images from external resources without using @EnableWebMvc or WebMvcConfigurationSupport?
Thanks