Skip to content

Commit 48ae2da

Browse files
committed
Initial commit
0 parents  commit 48ae2da

File tree

22 files changed

+654
-0
lines changed

22 files changed

+654
-0
lines changed

.gitignore

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
.gradle
2+
/build/
3+
!gradle/wrapper/gradle-wrapper.jar
4+
5+
### STS ###
6+
.apt_generated
7+
.classpath
8+
.factorypath
9+
.project
10+
.settings
11+
.springBeans
12+
13+
### IntelliJ IDEA ###
14+
.idea
15+
*.iws
16+
*.iml
17+
*.ipr
18+
19+
### NetBeans ###
20+
nbproject/private/
21+
build/
22+
nbbuild/
23+
dist/
24+
nbdist/
25+
.nb-gradle/

build.gradle

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
buildscript {
2+
ext {
3+
springBootVersion = '1.5.8.RELEASE'
4+
}
5+
repositories {
6+
maven {
7+
url 'http://maven.aliyun.com/nexus/content/groups/public/'
8+
}
9+
mavenCentral()
10+
}
11+
dependencies {
12+
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
13+
}
14+
}
15+
16+
apply plugin: 'java'
17+
apply plugin: 'eclipse'
18+
apply plugin: 'org.springframework.boot'
19+
20+
group = 'com.linkinstars'
21+
version = '0.0.1-SNAPSHOT'
22+
sourceCompatibility = 1.8
23+
24+
repositories {
25+
mavenCentral()
26+
}
27+
28+
29+
dependencies {
30+
compile('org.springframework.boot:spring-boot-starter-web')
31+
compile('org.springframework.boot:spring-boot-starter-thymeleaf')
32+
compile group: 'com.alibaba', name: 'druid', version: '1.0.19'
33+
compile group: 'mysql', name: 'mysql-connector-java', version: '6.0.6'
34+
compile group: 'org.mybatis', name: 'mybatis', version: '3.4.5'
35+
compile group: 'org.mybatis', name: 'mybatis-spring', version: '1.3.1'
36+
compile group: 'org.springframework', name: 'spring-tx', version: '5.0.2.RELEASE'
37+
compile group: 'org.springframework', name: 'spring-jdbc', version: '5.0.2.RELEASE'
38+
testCompile('org.springframework.boot:spring-boot-starter-test')
39+
}

gradle/wrapper/gradle-wrapper.jar

53.4 KB
Binary file not shown.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
distributionBase=GRADLE_USER_HOME
2+
distributionPath=wrapper/dists
3+
zipStoreBase=GRADLE_USER_HOME
4+
zipStorePath=wrapper/dists
5+
distributionUrl=https\://services.gradle.org/distributions/gradle-3.5.1-bin.zip

gradlew

Lines changed: 172 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gradlew.bat

Lines changed: 84 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package com.linkinstars.springBootTemplate;
2+
3+
import org.springframework.boot.SpringApplication;
4+
import org.springframework.boot.autoconfigure.SpringBootApplication;
5+
6+
@SpringBootApplication
7+
public class SpringBootTemplateApplication {
8+
9+
public static void main(String[] args) {
10+
SpringApplication.run(SpringBootTemplateApplication.class, args);
11+
}
12+
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
package com.linkinstars.springBootTemplate.bean;
2+
3+
/**
4+
* 实体类(POJO)
5+
* Created by LinkinStar
6+
*/
7+
public class UserEntity {
8+
9+
int id;
10+
String val;
11+
12+
public int getId() {
13+
return id;
14+
}
15+
16+
public void setId(int id) {
17+
this.id = id;
18+
}
19+
20+
public String getVal() {
21+
return val;
22+
}
23+
24+
public void setVal(String val) {
25+
this.val = val;
26+
}
27+
28+
}

0 commit comments

Comments
 (0)