Guest User

Untitled

a guest
May 22nd, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. @EnableAsync
  2. @RestController
  3. @EnableAutoConfiguration
  4. @SpringBootApplication
  5. @ComponentScan(basePackages="com.app.sensiple")
  6. public class SensipleApplication extends SpringBootServletInitializer {
  7.  
  8. @Override
  9. protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
  10. return application.sources(SensipleApplication.class);
  11. }
  12.  
  13.  
  14.  
  15. public static void main(String[] args) {
  16. SpringApplication.run(SensipleApplication.class, args);
  17. }
  18. @RequestMapping("/test")
  19. String test() {
  20. return "This is test and it's Working fine!";
  21. }
  22.  
  23. <packaging>war</packaging>
  24. <!-- ... -->
  25. <dependencies>
  26. <dependency>
  27. <groupId>org.springframework.boot</groupId>
  28. <artifactId>spring-boot-starter-web</artifactId>
  29. </dependency>
  30. <dependency>
  31. <groupId>org.springframework.boot</groupId>
  32. <artifactId>spring-boot-starter-tomcat</artifactId>
  33. <scope>provided</scope>
  34. </dependency>
  35. <!-- ... -->
  36. </dependencies>
Add Comment
Please, Sign In to add comment