@ Bean @ Order ( 1 ) ArmeriaServerConfigurator notFoundMetricCollector ( ) { // Use glob instead of catch-all to avoid adding it to the trie router. return sb -> sb . service ( PathMapping . ofGlob ( "/**" ) , ( ctx , req ) -> HttpResponse . of ( HttpStatus . NOT_FOUND ) ) ; }
service is handled by this .