Skip to content

Commit

Permalink
thymeleaf 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
bhkimz committed Nov 16, 2021
1 parent de3a1b0 commit 55e38c6
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ dependencies {
implementation("com.oracle.database.security:osdt_core")
implementation("com.oracle.database.security:osdt_cert")

// [[ thymeleaf
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
// layout with thymeleaf
implementation 'nz.net.ultraq.thymeleaf:thymeleaf-layout-dialect'

compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package com.powernote.skeleton.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class IndexController {

@GetMapping("/index")
public String index() {

return "index";
}
}
15 changes: 15 additions & 0 deletions src/main/resources/templates/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>

Hello thymeleaf Page




</body>
</html>

0 comments on commit 55e38c6

Please sign in to comment.