摘要:
背景 前端控制器(dispatcherServlet)默认拦截静态资源,因此在默认情况下,jsp无法向服务器请求静态资源。为了不拦截静态资源,首先,将js,css等资源放置于webapp中除WEB-INF(否则会让配置变得很麻烦)的任一目录下; 然后,在SpringMVC的配置文件中通过mvc:re 阅读全文
摘要:
Background If you don't need the inner class to access the object of outer class, you can define it as static. Here is an typical example of where you 阅读全文