spring

  • Declare bean in Spring container

    With this example we are going to demonstrate how to declare a Bean in the Spring container. A Spring bean…

    Read More »
  • Use preferences in Spring

    Spring provides PreferencesPlaceholderConfigurer that can be used to load preferences. <bean id="preferencePlaceHolder" class="org.springframework.beans.factory.config.PreferencesPlaceholderConfigurer"> <property name="userTreePath" value="com.myapp.preference.staticPreferenceLoader" /> </bean> <bean id="myEntity"…

    Read More »
  • Spring MVC interceptor example

    The demonstration code shows you how to modify the incoming HttpServletRequest object before it reaches your controller. This does nothing…

    Read More »
Back to top button