Lightning Talk: New Sling Servlet Annotations
summary
New Sling servlet annotations replace the deprecated SlingServlet and clunky OSGi R5 annotations and require Declarative Services 1.3, BND/maven-bundle-plugin v4+ and an added maven dependency (supported since AEM 6.1). They register by resourceType or path, show that relative resourceType prepends /libs so registrations can miss, only register GET/HEAD by default (POST must be declared), and enforce selector order (first selector must match), with integration tests provided as the authoritative examples.
AI-written summary · about
chapters (6)
- 0:00Start
- 2:31New Annotations
- 2:44Sling Servlet Resource Types
- 4:45Sling Servlet Paths
- 5:12Quiz
- 7:32Get Request with Two Different Selectors
related talks
42mApache Sling as a microservices gateway
49mOn @annotations - liberate yourselves from demons
50mJava EE 8: What's New in the Java EE 8 Release
55mOn Annotations — Time to Stop the Demons
01h 20mSpring 4 Web Applications
04mpart6 – Adam Bien
01h 26mWhat's new in Spring MVC 3.2
01h 22mSpring Integration, Batch, and Data Lightning Talks
