Package com.rollbar.spring.boot.webmvc
Class RollbarServletContextInitializer
java.lang.Object
com.rollbar.spring.boot.webmvc.RollbarServletContextInitializer
- All Implemented Interfaces:
org.springframework.boot.web.servlet.ServletContextInitializer
@Component
public class RollbarServletContextInitializer
extends Object
implements org.springframework.boot.web.servlet.ServletContextInitializer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonStartup(jakarta.servlet.ServletContext container) Adds RollbarListener when app starts up.
-
Constructor Details
-
RollbarServletContextInitializer
public RollbarServletContextInitializer()
-
-
Method Details
-
onStartup
public void onStartup(jakarta.servlet.ServletContext container) Adds RollbarListener when app starts up. This enriches HTTP request data with Rollbar exceptions. You can view this data from the Rollbar app.- Specified by:
onStartupin interfaceorg.springframework.boot.web.servlet.ServletContextInitializer
-