Skip to content

Commit

Permalink
springboot demo created
Browse files Browse the repository at this point in the history
  • Loading branch information
Juraj Veverka committed Sep 13, 2018
1 parent 9384a01 commit 996ccc4
Show file tree
Hide file tree
Showing 7 changed files with 102 additions and 0 deletions.
27 changes: 27 additions & 0 deletions spring/springboot/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
.gradle
/build/
/out/
!gradle/wrapper/gradle-wrapper.jar

### STS ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache

### IntelliJ IDEA ###
.idea
*.iws
*.iml
*.ipr
/out/

### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/
7 changes: 7 additions & 0 deletions spring/springboot/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Simple Spring Boot 2.0 demo

### Build and run
```
gradle clean build
java -jar build/libs/demo-0.0.1-SNAPSHOT.jar
```
39 changes: 39 additions & 0 deletions spring/springboot/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
buildscript {
ext {
springBootVersion = '2.1.0.M2'
}
repositories {
mavenCentral()
maven { url "https://repo.spring.io/snapshot" }
maven { url "https://repo.spring.io/milestone" }
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
}

apply plugin: 'java'
apply plugin: 'eclipse'
//apply plugin: 'application'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'

group = 'itx.examples.springboot'
version = '0.0.1-SNAPSHOT'

//mainClassName = 'itx.examples.springboot.demo.DemoApplication'

sourceCompatibility = 10
targetCompatibility = 10

repositories {
mavenCentral()
maven { url "https://repo.spring.io/snapshot" }
maven { url "https://repo.spring.io/milestone" }
}


dependencies {
compile('org.springframework.boot:spring-boot-starter-web')
testCompile('org.springframework.boot:spring-boot-starter-test')
}
1 change: 1 addition & 0 deletions spring/springboot/settings.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rootProject.name = 'demo'
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package itx.examples.springboot.demo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class DemoApplication {

public static void main(String[] args) {
SpringApplication.run(DemoApplication.class, args);
}
}
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package itx.examples.springboot.demo;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

@RunWith(SpringRunner.class)
@SpringBootTest
public class DemoApplicationTests {

@Test
public void contextLoads() {
}

}

0 comments on commit 996ccc4

Please sign in to comment.