-
-
Save regunathanr/bc59ab15d9b688c9d7e473de018943e0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@RestController | |
@EnableBinding(Processor.class) | |
public class RestApiEndPoint { | |
public String message="hello"; | |
@ServiceActivator(inputChannel = Processor.INPUT, outputChannel = Processor.OUTPUT) | |
public String log(String message) { | |
this.message=message; | |
System.out.println(message); | |
return message; | |
} | |
@RequestMapping("/") | |
public String index() { | |
System.out.println(this.message); | |
return this.message; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment