예제 #1
0
 @Override
 public void configureDefaultServletHandling(DefaultServletHandlerConfigurer configurer) {
   logger.debug("configureDefaultServletHandling");
   // if the spring dispatcher is mapped to / then forward non handled
   // requests
   // (e.g. static resource) to the container's "default servlet"
   configurer.enable();
 }
 @Override
 public void configureDefaultServletHandling(DefaultServletHandlerConfigurer configurer) {
   configurer.enable();
 }
예제 #3
0
 @Override
 public void configureDefaultServletHandling(DefaultServletHandlerConfigurer configurer) {
   configurer.enable("front-controller");
 }
예제 #4
0
 @Override
 protected void configureDefaultServletHandling(DefaultServletHandlerConfigurer configurer) {
   // Ensures that dispatcher servlet can be mapped to '/' and that static resources are still
   // served by the containers default servlet.
   configurer.enable();
 }
 @Override
 // Carrega as configura��es default do Spring
 public void configureDefaultServletHandling(DefaultServletHandlerConfigurer configurer) {
   configurer.enable();
 }
예제 #6
0
 @Override
 public void configureDefaultServletHandling(DefaultServletHandlerConfigurer configurer) {
   // Serving static files using the Servlet container's default Servlet.
   configurer.enable();
 }
예제 #7
0
 @Override
 public void configureDefaultServletHandling(DefaultServletHandlerConfigurer handlerConfigurer) {
   handlerConfigurer.enable(); // 设置静态资源可用
 }