@@ -0,0 +1,725 @@
+package pl.koszela.jan.main.annotation;%0A%0Aimport java.lang.annotation.Documented;%0Aimport java.lang.annotation.ElementType;%0Aimport java.lang.annotation.Retention;%0Aimport java.lang.annotation.RetentionPolicy;%0Aimport java.lang.annotation.Target;%0Aimport org.springframework.context.annotation.Scope;%0Aimport org.springframework.context.annotation.ScopedProxyMode;%0Aimport org.springframework.web.context.WebApplicationContext;%0A%0A/**%0A * Created on 17.08.2017.%0A *%0A * @author Jan Koszela%0A */%0A@Target(%7BElementType.TYPE, ElementType.METHOD%7D)%0A@Retention(RetentionPolicy.RUNTIME)%0A@Documented%0A@Scope(WebApplicationContext.SCOPE_SESSION)%0Apublic @interface SessionScope %7B%0A%0A  ScopedProxyMode proxyMode() default ScopedProxyMode.TARGET_CLASS;%0A%0A%7D

Add session scope annotation