Update Default Servlet Handler for Spring Framework if empty

Apache 2.0

This recipe will update Spring Framework default servlet handler if empty, as noted in the Spring Framework 6.2 documentation.

com.oracle.weblogic.rewrite.spring.framework.DefaultServletHandler
mod run . --recipe=com.oracle.weblogic.rewrite.spring.framework.DefaultServletHandler

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.

Recipe list

It runs these recipes, in this order.

  1. Remove XML tag //beans/mvc:default-servlet-handler[not(@default-servlet-name)]
  2. Add or update child tag