Skip to content

Instantly share code, notes, and snippets.

@odedia
Created May 21, 2018 18:14
Show Gist options
  • Save odedia/590ebd43f61f1127088805feb04ed3d7 to your computer and use it in GitHub Desktop.
Save odedia/590ebd43f61f1127088805feb04ed3d7 to your computer and use it in GitHub Desktop.
package functions;
import java.util.function.Function;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
@SpringBootApplication
public class ReverseApplication {
@Bean
public Function<String, String> uppercase() {
return s -> new StringBuilder(s).reverse().toString();
}
public static void main(String[] args) {
SpringApplication.run(ReverseApplication.class, args);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment