example.jbot.JBotApplication Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jbot-example Show documentation
Show all versions of jbot-example Show documentation
A sample Slack/Facebook bot using JBot.
package example.jbot;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;
@SpringBootApplication(scanBasePackages = {"me.ramswaroop.jbot", "example.jbot"})
public class JBotApplication {
@Bean
public RestTemplate restTemplate() {
return new RestTemplate();
}
/**
* Entry point of the application. Run this method to start the sample bots,
* but don't forget to add the correct tokens in application.properties file.
*
* @param args
*/
public static void main(String[] args) {
SpringApplication.run(JBotApplication.class, args);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy