Example usage for org.springframework.web.servlet.config.annotation WebMvcConfigurerAdapter subclass-usage

List of usage examples for org.springframework.web.servlet.config.annotation WebMvcConfigurerAdapter subclass-usage

Introduction

In this page you can find the example usage for org.springframework.web.servlet.config.annotation WebMvcConfigurerAdapter subclass-usage.

Usage

From source file com.launchkey.example.springmvc.AppConfig.java

/**
 * Copyright 2015 LaunchKey, Inc.  All rights reserved.
 *
 * Licensed under the MIT License.
 * You may not use this file except in compliance with the License.
 * A copy of the License is located in the "LICENSE.txt" file accompanying

From source file gr.pskoufos.configuration.WebMvcConfig.java

/**
 *
 * @author administrator
 */
@EnableWebMvc
@Configuration

From source file com.xy.inc.configuration.WebMvcConfig.java

/**
 *
 * @author Hugo
 */
@EnableWebMvc
@Configuration

From source file org.sample.app.StaticResourceConfiguration.java

@Configuration
public class StaticResourceConfiguration extends WebMvcConfigurerAdapter {

    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
        registry.addResourceHandler("/**").addResourceLocations("http://localhost:3000/");

From source file com.orange.clara.cloud.servicedbdumper.config.WebApplicationConfig.java

/**
 * Copyright (C) 2015 Orange
 * <p>
 * This software is distributed under the terms and conditions of the 'Apache-2.0'
 * license which can be found in the file 'LICENSE' in this package distribution
 * or at 'https://opensource.org/licenses/Apache-2.0'.

From source file app.igogo.MvcConfig.java

@Configuration
public class MvcConfig extends WebMvcConfigurerAdapter {

    @Override
    public void addViewControllers(ViewControllerRegistry registry) {
        super.addViewControllers(registry); //To change body of generated methods, choose Tools | Templates.

From source file business.security.CacheControlConfiguration.java

@Configuration
public class CacheControlConfiguration extends WebMvcConfigurerAdapter {

    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
        // Add caching for static resources (1 hour).

From source file com.takeneat.services.WebConfig.java

/**
 * Web configuration.
 *
 * @author paoesco
 */
@Configuration

From source file com.arya.latihan.config.WebConfiguration.java

/** 
 *
 * @author Artha
 */
@Configuration
public class WebConfiguration extends WebMvcConfigurerAdapter {

From source file com.anuz.dummyclient.config.AppConfig.java

/**
 *
 * @author anuz
 */
@Configuration
public class AppConfig extends WebMvcConfigurerAdapter {