Skip to content

Instantly share code, notes, and snippets.

@ccampo133
Created April 6, 2015 23:19
Show Gist options
  • Save ccampo133/4d25892d57b85597672a to your computer and use it in GitHub Desktop.
Save ccampo133/4d25892d57b85597672a to your computer and use it in GitHub Desktop.
Apache Camel Spring Boot
import org.apache.camel.builder.RouteBuilder;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
@SpringBootApplication
public class AdapterApplication {
public static void main(final String[] args) {
new SpringApplication(AdapterApplication.class).run(args);
}
@Bean
RouteBuilder Router() {
return new RouteBuilder() {
@Override
public void configure() throws Exception {
from("file:target/input").to("file:target/output");
}
};
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment