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 com.ekiras.filter; | |
import org.springframework.core.annotation.Order; | |
import org.springframework.stereotype.Component; | |
import javax.servlet.*; | |
import java.io.IOException; | |
/** | |
* Created by ekansh on 22/10/15. |
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
Java based Configuration : | |
The official Spring documentation refers to configuring your beans using a Java class annotated with @Configuration | |
and containing @Bean methods as 'Java Configuration'. This allows you to be absolutely free of all XML in your | |
application (at least as far as Spring goes). This support was added in Spring 3.0, and has gotten more powerful. | |
Annotation based Configuration: | |
Starting from Spring 2.5 it became possible to configure the dependency injection using annotations. | |
So instead of using XML to describe a bean wiring, you can move the bean configuration into the component | |
class itself by using annotations on the relevant class, method, or field declaration. |
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
*/src/META-INF/ | |
*/src/main/java/META-INF/ | |
samples/*/*/src/main/webapp/META-INF/ | |
target/ | |
.classpath | |
.project | |
.DS_Store | |
.settings/ | |
*.iml | |
*.iws |