File tree Expand file tree Collapse file tree 6 files changed +105
-0
lines changed
java/com/xkcoding/mongodb
test/java/com/xkcoding/mongodb Expand file tree Collapse file tree 6 files changed +105
-0
lines changed Original file line number Diff line number Diff line change 4545 <module >spring-boot-demo-dubbo</module >
4646 <module >spring-boot-demo-war</module >
4747 <module >spring-boot-demo-elasticsearch</module >
48+ <module >spring-boot-demo-mongodb</module >
4849 <module >spring-boot-demo-neo4j</module >
4950 <module >spring-boot-demo-docker</module >
5051 </modules >
Original file line number Diff line number Diff line change 1+ /target /
2+ ! .mvn /wrapper /maven-wrapper.jar
3+
4+ # ## STS ###
5+ .apt_generated
6+ .classpath
7+ .factorypath
8+ .project
9+ .settings
10+ .springBeans
11+ .sts4-cache
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 /
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2+ <project xmlns =" http://maven.apache.org/POM/4.0.0" xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
3+ xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" >
4+ <modelVersion >4.0.0</modelVersion >
5+
6+ <artifactId >spring-boot-demo-mongodb</artifactId >
7+ <version >1.0.0-SNAPSHOT</version >
8+ <packaging >jar</packaging >
9+
10+ <name >spring-boot-demo-mongodb</name >
11+ <description >Demo project for Spring Boot</description >
12+
13+ <parent >
14+ <groupId >com.xkcoding</groupId >
15+ <artifactId >spring-boot-demo</artifactId >
16+ <version >1.0.0-SNAPSHOT</version >
17+ </parent >
18+
19+ <properties >
20+ <project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
21+ <project .reporting.outputEncoding>UTF-8</project .reporting.outputEncoding>
22+ <java .version>1.8</java .version>
23+ </properties >
24+
25+ <dependencies >
26+ <dependency >
27+ <groupId >org.springframework.boot</groupId >
28+ <artifactId >spring-boot-starter</artifactId >
29+ </dependency >
30+
31+ <dependency >
32+ <groupId >org.springframework.boot</groupId >
33+ <artifactId >spring-boot-starter-test</artifactId >
34+ <scope >test</scope >
35+ </dependency >
36+ </dependencies >
37+
38+ <build >
39+ <finalName >spring-boot-demo-mongodb</finalName >
40+ <plugins >
41+ <plugin >
42+ <groupId >org.springframework.boot</groupId >
43+ <artifactId >spring-boot-maven-plugin</artifactId >
44+ </plugin >
45+ </plugins >
46+ </build >
47+
48+ </project >
Original file line number Diff line number Diff line change 1+ package com .xkcoding .mongodb ;
2+
3+ import org .springframework .boot .SpringApplication ;
4+ import org .springframework .boot .autoconfigure .SpringBootApplication ;
5+
6+ @ SpringBootApplication
7+ public class SpringBootDemoMongodbApplication {
8+
9+ public static void main (String [] args ) {
10+ SpringApplication .run (SpringBootDemoMongodbApplication .class , args );
11+ }
12+
13+ }
14+
Original file line number Diff line number Diff line change 1+ package com .xkcoding .mongodb ;
2+
3+ import org .junit .Test ;
4+ import org .junit .runner .RunWith ;
5+ import org .springframework .boot .test .context .SpringBootTest ;
6+ import org .springframework .test .context .junit4 .SpringRunner ;
7+
8+ @ RunWith (SpringRunner .class )
9+ @ SpringBootTest
10+ public class SpringBootDemoMongodbApplicationTests {
11+
12+ @ Test
13+ public void contextLoads () {
14+ }
15+
16+ }
17+
You can’t perform that action at this time.
0 commit comments