Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package springbootdemo;
- import org.apache.catalina.core.ApplicationContext;
- import org.springframework.boot.SpringApplication;
- import org.springframework.boot.autoconfigure.SpringBootApplication;
- @SpringBootApplication
- public class MainActivity {
- public MainActivity() {
- // TODO Auto-generated constructor stub
- }
- public static void main(String[] args) {
- ApplicationContext ctx = SpringApplication.run(MainActivity.class, args);
- }
- }
- <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">
- <modelVersion>4.0.0</modelVersion>
- <groupId>labs.noogui.springbootquickstart</groupId>
- <artifactId>course-api</artifactId>
- <version>0.0.1-SNAPSHOT</version>
- <name>springboot course-api</name>
- <parent>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-parent</artifactId>
- <version>2.0.3.RELEASE</version>
- </parent>
- <dependencies>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-web</artifactId>
- </dependency>
- </dependencies>
- <build>
- <plugins>
- <plugin>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-maven-plugin</artifactId>
- <executions>
- <execution>
- <goals>
- <goal>repackage</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- <properties>
- <java.version>1.8</java.version>
- </properties>
- </project>
Add Comment
Please, Sign In to add comment