Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (17 sloc) 731 Bytes
import org.springframework.boot.web.servlet.ServletRegistrationBean
import org.springframework.boot.web.servlet.ServletListenerRegistrationBean
import com.pullreports.web.PullReportsServlet
import com.pullreports.web.PullReportsContextListener
import grails.util.Environment
beans = {
if (Environment.isDevelopmentMode()) {
tomcatEmbeddedServletContainerFactory(com.pullreports.qs.grails.JndiTomcatEmbeddedServletContainerFactory)
}
pullreportsListener(ServletListenerRegistrationBean) { bean ->
listener = new PullReportsContextListener()
}
pullreportsServlet(ServletRegistrationBean) { bean ->
servlet = new PullReportsServlet()
urlMappings = ['/pullreports/*']
}
}