fun defaultRecommendations(productId: Int): ResponseEntity<List<Recommendation?>?>? { LOG.warn("Using fallback method for recommendation-service") return util.createResponse( Arrays.asList( Recommendation( productId, 1, "Fallback Author 1", 1, "Fallback Content 1" ) ), HttpStatus.OK ) }
Fallback method for getRecommendations ( )