Browse Source

init

master
nelson 5 years ago
commit
d828e8d658
  1. 32
      .gitignore
  2. 20
      build.gradle
  3. 1
      settings.gradle
  4. 13
      src/main/java/com/example/sbmongo/SbmongoApplication.java
  5. 2
      src/main/resources/application.yml

32
.gitignore

@ -0,0 +1,32 @@
HELP.md
.gradle
build/
!gradle/wrapper/gradle-wrapper.jar
!**/src/main/**
!**/src/test/**
### 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/
### VS Code ###
.vscode/

20
build.gradle

@ -0,0 +1,20 @@
plugins {
id 'org.springframework.boot' version '2.1.7.RELEASE'
id 'io.spring.dependency-management' version '1.0.7.RELEASE'
id 'java'
}
group = 'com.example'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '1.8'
repositories {
maven { url "http://maven.aliyun.com/nexus/content/groups/public/" }
maven { url "http://maven.aiprose.com/repository/maven-public/" }
mavenCentral()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-mongodb'
implementation 'org.springframework.boot:spring-boot-starter-web'
}

1
settings.gradle

@ -0,0 +1 @@
rootProject.name = 'sbmongo'

13
src/main/java/com/example/sbmongo/SbmongoApplication.java

@ -0,0 +1,13 @@
package com.example.sbmongo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class SbmongoApplication {
public static void main(String[] args) {
SpringApplication.run(SbmongoApplication.class, args);
}
}

2
src/main/resources/application.yml

@ -0,0 +1,2 @@
server:
port: 8080
Loading…
Cancel
Save