Map called greetings with keys dev and prod and their respective greeting messages.String variable called activeProfile to hold the current profile name.if statements to select the greeting message based on activeProfile.@RestController with a @GetMapping that returns the correct greeting.