Created
October 2, 2014 19:25
-
-
Save DmitryVarennikov/9c75855adec931be999b to your computer and use it in GitHub Desktop.
WebConfig fails
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package cuenation.api; | |
import org.springframework.boot.SpringApplication; | |
import org.springframework.boot.autoconfigure.EnableAutoConfiguration; | |
import org.springframework.context.annotation.Bean; | |
import org.springframework.context.annotation.ComponentScan; | |
import org.springframework.context.annotation.Configuration; | |
import org.springframework.data.mongodb.repository.config.EnableMongoRepositories; | |
import org.springframework.data.web.config.EnableSpringDataWebSupport; | |
import org.springframework.web.filter.ShallowEtagHeaderFilter; | |
import javax.servlet.Filter; | |
@ComponentScan | |
@EnableAutoConfiguration | |
@EnableMongoRepositories | |
@EnableSpringDataWebSupport | |
public class Application { | |
public static void main(String[] args) { | |
SpringApplication.run(Application.class, args); | |
} | |
@Configuration | |
public class WebConfig { | |
public WebConfig() { | |
} | |
@Bean | |
public Filter shallowEtagHeaderFilter() { | |
return new ShallowEtagHeaderFilter(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment