File tree 5 files changed +88
-0
lines changed
java/com/knowledgefactory/knowledgefactorydemo 5 files changed +88
-0
lines changed 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 https://maven.apache.org/xsd/maven-4.0.0.xsd" >
4
+ <modelVersion >4.0.0</modelVersion >
5
+ <parent >
6
+ <groupId >org.springframework.boot</groupId >
7
+ <artifactId >spring-boot-starter-parent</artifactId >
8
+ <version >2.1.1.RELEASE</version >
9
+ <!-- lookup parent from repository -->
10
+ </parent >
11
+ <groupId >com.knowledgefactory</groupId >
12
+ <artifactId >springboot-mustache</artifactId >
13
+ <packaging >jar</packaging >
14
+ <version >0.0.1-SNAPSHOT</version >
15
+ <name >springboot-mustache</name >
16
+ <description >Demo project for Springboot-mustache</description >
17
+
18
+ <properties >
19
+ <java .version>1.8</java .version>
20
+ </properties >
21
+
22
+ <dependencies >
23
+ <dependency >
24
+ <groupId >org.springframework.boot</groupId >
25
+ <artifactId >spring-boot-starter</artifactId >
26
+ </dependency >
27
+ <!-- spring mvc, rest -->
28
+ <dependency >
29
+ <groupId >org.springframework.boot</groupId >
30
+ <artifactId >spring-boot-starter-web</artifactId >
31
+ </dependency >
32
+ <dependency >
33
+ <groupId >org.springframework.boot</groupId >
34
+ <artifactId >spring-boot-starter-mustache</artifactId >
35
+ </dependency >
36
+ </dependencies >
37
+
38
+ <build >
39
+ <plugins >
40
+ <plugin >
41
+ <groupId >org.springframework.boot</groupId >
42
+ <artifactId >spring-boot-maven-plugin</artifactId >
43
+ </plugin >
44
+ </plugins >
45
+ </build >
46
+
47
+ </project >
Original file line number Diff line number Diff line change
1
+ package com .knowledgefactory .knowledgefactorydemo ;
2
+
3
+ import org .springframework .stereotype .Controller ;
4
+ import org .springframework .ui .Model ;
5
+ import org .springframework .web .bind .annotation .GetMapping ;
6
+
7
+ @ Controller
8
+ public class HomeController {
9
+
10
+ @ GetMapping ({ "/" , "/welcome" })
11
+ public String hello (Model model ) {
12
+
13
+ return "index" ;
14
+ }
15
+ }
Original file line number Diff line number Diff line change
1
+ package com .knowledgefactory .knowledgefactorydemo ;
2
+
3
+ import org .springframework .boot .SpringApplication ;
4
+ import org .springframework .boot .autoconfigure .SpringBootApplication ;
5
+
6
+ @ SpringBootApplication
7
+ public class KnowledgefactorydemoApplication {
8
+
9
+ public static void main (String [] args ) {
10
+ SpringApplication .run (KnowledgefactorydemoApplication .class , args );
11
+ }
12
+
13
+ }
Original file line number Diff line number Diff line change
1
+ spring.mustache.suffix :.html
Original file line number Diff line number Diff line change
1
+ <!DOCTYPE html>
2
+ < html lang ="en ">
3
+ < head >
4
+ < meta charset ="UTF-8 ">
5
+ < title > Hello Mustache</ title >
6
+
7
+ </ head >
8
+ < body >
9
+ < h2 class ="hello-title "> Hello Mustache</ h2 >
10
+
11
+ </ body >
12
+ </ html >
You can’t perform that action at this time.
0 commit comments