Guest User

Untitled

a guest
Jul 21st, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.72 KB | None | 0 0
  1. package springbootdemo;
  2.  
  3. import org.apache.catalina.core.ApplicationContext;
  4. import org.springframework.boot.SpringApplication;
  5. import org.springframework.boot.autoconfigure.SpringBootApplication;
  6.  
  7. @SpringBootApplication
  8. public class MainActivity {
  9.  
  10. public MainActivity() {
  11. // TODO Auto-generated constructor stub
  12. }
  13.  
  14. public static void main(String[] args) {
  15. ApplicationContext ctx = SpringApplication.run(MainActivity.class, args);
  16.  
  17. }
  18. }
  19.  
  20. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  21. <modelVersion>4.0.0</modelVersion>
  22. <groupId>labs.noogui.springbootquickstart</groupId>
  23. <artifactId>course-api</artifactId>
  24. <version>0.0.1-SNAPSHOT</version>
  25. <name>springboot course-api</name>
  26.  
  27. <parent>
  28. <groupId>org.springframework.boot</groupId>
  29. <artifactId>spring-boot-starter-parent</artifactId>
  30. <version>2.0.3.RELEASE</version>
  31. </parent>
  32.  
  33. <dependencies>
  34.  
  35. <dependency>
  36. <groupId>org.springframework.boot</groupId>
  37. <artifactId>spring-boot-starter-web</artifactId>
  38. </dependency>
  39.  
  40. </dependencies>
  41.  
  42. <build>
  43. <plugins>
  44. <plugin>
  45. <groupId>org.springframework.boot</groupId>
  46. <artifactId>spring-boot-maven-plugin</artifactId>
  47. <executions>
  48. <execution>
  49. <goals>
  50. <goal>repackage</goal>
  51. </goals>
  52. </execution>
  53. </executions>
  54. </plugin>
  55. </plugins>
  56. </build>
  57. <properties>
  58. <java.version>1.8</java.version>
  59. </properties>
  60.  
  61. </project>
Add Comment
Please, Sign In to add comment