All Downloads are FREE. Search and download functionalities are using the official Maven repository.

example.jbot.JBotApplication Maven / Gradle / Ivy

There is a newer version: 4.1.2-rc.2
Show newest version
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