Skip to content

Utilities for spring web development, including the ecstatic web asset management framework.

Notifications You must be signed in to change notification settings

brhurley/kubes-utils

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Utility classes for spring web developement. This includes the web asset management framework. See unit tests.

Example configuring the PropertyWebappContextInitializer

 <listener>
   <listener-class>org.springframework.web.util.WebAppRootListener</listener-class>
 </listener>

 <servlet>
   <servlet-name>springmvc</servlet-name>
   <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
   <init-param>
     <param-name>detectAllViewResolvers</param-name>
     <param-value>true</param-value>
   </init-param>
   <init-param>
     <param-name>contextConfigLocation</param-name>
     <param-value>/WEB-INF/conf/*-context.xml</param-value>
   </init-param>
   <init-param>
     <param-name>contextInitializerClasses</param-name>
     <param-value>com.denniskubes.spring.PropertyWebappContextInitializer</param-value>
   </init-param>    
   <load-on-startup>1</load-on-startup> 
 </servlet>

Example configuring the in PatternReloadableResourceBundleMessageSource in webapp-context.xml

 <bean id="messageSource"
   class="com.denniskubes.spring.PatternReloadableResourceBundleMessageSource">
   <property name="cacheSeconds" value="5" />
   <property name="resources">
     <list>
       <value>/WEB-INF/pages/**/*_i18n.xml</value>
     </list>
   </property>
 </bean>

Example configuring the web asset manager in webapp-context.xml

 <bean id="webAssetManager" class="com.denniskubes.webasset.WebAssetManager"
   init-method="startup" destroy-method="shutdown">
   <property name="rootDirectory" value="${webapp.root}" />
   <property name="configDirectory" value="/WEB-INF/pages/" />
   <property name="removeExistingCacheFiles" value="true" />
 </bean>

About

Utilities for spring web development, including the ecstatic web asset management framework.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 99.5%
  • Other 0.5%