|
|
@ -47,7 +47,11 @@ public class ServletConfig {
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@Bean
|
|
|
|
@Bean
|
|
|
|
public ServletRegistrationBean<DefaultServlet> defaultServlet() {
|
|
|
|
public ServletRegistrationBean<DefaultServlet> defaultServlet() {
|
|
|
|
ServletRegistrationBean<DefaultServlet> bean = new ServletRegistrationBean<>(new DefaultServlet(), "/resources/*");
|
|
|
|
ServletRegistrationBean<DefaultServlet> bean = new ServletRegistrationBean<>(
|
|
|
|
|
|
|
|
new DefaultServlet(),
|
|
|
|
|
|
|
|
"/resources/*",
|
|
|
|
|
|
|
|
"/files/*"
|
|
|
|
|
|
|
|
);
|
|
|
|
bean.setLoadOnStartup(1);
|
|
|
|
bean.setLoadOnStartup(1);
|
|
|
|
|
|
|
|
|
|
|
|
HashMap<String, String> params = new HashMap<>();
|
|
|
|
HashMap<String, String> params = new HashMap<>();
|
|
|
|